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

Public Member Functions

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

Member Function Documentation

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

Implements AchievementCriteriaScript.

214  {
215  if (!target)
216  return false;
217 
218  if (Creature* Zuramat = target->ToCreature())
219  if (Zuramat->AI()->GetData(DATA_VOID_DANCE))
220  return true;
221 
222  return false;
223  }
Definition: Creature.h:467
Creature * ToCreature()
Definition: Object.h:194
Definition: boss_zuramat.cpp:47

+ Here is the call graph for this function:


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