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

Public Member Functions

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

Member Function Documentation

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

Implements AchievementCriteriaScript.

491  {
492  if (target && target->IsAIEnabled)
493  return target->GetAI()->GetData(DATA_SHATTERED) != 0;
494 
495  return false;
496  }
Definition: boss_ignis.cpp:83
bool IsAIEnabled
Definition: Unit.h:2161
UnitAI * GetAI()
Definition: Unit.h:1331
virtual uint32 GetData(uint32) const
Definition: UnitAI.h:139

+ Here is the call graph for this function:


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