TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
achievement_orbit_uary Class Reference

Public Member Functions

 achievement_orbit_uary ()
 
bool OnCheck (Player *, Unit *target) override
 
- Public Member Functions inherited from ScriptObject
const std::string & GetName () const
 

Additional Inherited Members

- Protected Member Functions inherited from AchievementCriteriaScript
 AchievementCriteriaScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name)
 
virtual ~ScriptObject ()
 

Constructor & Destructor Documentation

achievement_orbit_uary::achievement_orbit_uary ( )
inline
1445 : AchievementCriteriaScript("achievement_orbit_uary") { }
AchievementCriteriaScript(const char *name)
Definition: ScriptMgr.cpp:1658

Member Function Documentation

bool achievement_orbit_uary::OnCheck ( Player ,
Unit target 
)
inlineoverridevirtual

Implements AchievementCriteriaScript.

1448  {
1449  if (!target)
1450  return false;
1451 
1452  if (Creature* Leviathan = target->ToCreature())
1453  if (Leviathan->AI()->GetData(DATA_ORBIT_ACHIEVEMENTS) == 4)
1454  return true;
1455 
1456  return false;
1457  }
Definition: Creature.h:467
Definition: boss_flame_leviathan.cpp:144
Creature * ToCreature()
Definition: Object.h:194

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: