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

Public Member Functions

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

Member Function Documentation

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

Implements AchievementCriteriaScript.

464  {
465  if (!target)
466  return false;
467 
468  if (Creature* Ichoron = target->ToCreature())
469  if (Ichoron->AI()->GetData(DATA_DEHYDRATION))
470  return true;
471 
472  return false;
473  }
Definition: Creature.h:467
Creature * ToCreature()
Definition: Object.h:194
Definition: boss_ichoron.cpp:69

+ Here is the call graph for this function:


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