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

Public Member Functions

 achievement_chaos_theory ()
 
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_chaos_theory::achievement_chaos_theory ( )
inline
273  : AchievementCriteriaScript("achievement_chaos_theory")
274  {
275  }
AchievementCriteriaScript(const char *name)
Definition: ScriptMgr.cpp:1658

Member Function Documentation

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

Implements AchievementCriteriaScript.

278  {
279  if (!target)
280  return false;
281 
282  if (Creature* Anomalus = target->ToCreature())
283  if (Anomalus->AI()->GetData(DATA_CHAOS_THEORY))
284  return true;
285 
286  return false;
287  }
Definition: Creature.h:467
Definition: boss_anomalus.cpp:68
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: