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

Public Member Functions

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

Member Function Documentation

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

Implements AchievementCriteriaScript.

318  {
319  if (!target)
320  return false;
321 
322  if (Creature* Ymiron = target->ToCreature())
323  if (Ymiron->AI()->GetData(DATA_KINGS_BANE))
324  return true;
325 
326  return false;
327  }
Definition: Creature.h:467
Definition: boss_ymiron.cpp:96
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: