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

Public Member Functions

 achievement_nuked_from_orbit ()
 
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_nuked_from_orbit::achievement_nuked_from_orbit ( )
inline
1427 : AchievementCriteriaScript("achievement_nuked_from_orbit") { }
AchievementCriteriaScript(const char *name)
Definition: ScriptMgr.cpp:1658

Member Function Documentation

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

Implements AchievementCriteriaScript.

1430  {
1431  if (!target)
1432  return false;
1433 
1434  if (Creature* Leviathan = target->ToCreature())
1435  if (Leviathan->AI()->GetData(DATA_ORBIT_ACHIEVEMENTS) >= 3)
1436  return true;
1437 
1438  return false;
1439  }
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: