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

Public Member Functions

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

Member Function Documentation

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

Implements AchievementCriteriaScript.

475  {
476  if (!target)
477  return false;
478 
479  if (Creature* Devourer = target->ToCreature())
480  if (Devourer->AI()->GetData(DATA_THREE_FACED))
481  return true;
482 
483  return false;
484  }
Definition: Creature.h:467
Definition: boss_devourer_of_souls.cpp:121
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: