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

Public Member Functions

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

Member Function Documentation

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

Implements AchievementCriteriaScript.

390  {
391  return target && target->GetAI()->GetData(DATA_SOUL_POWER) >= 4;
392  }
Definition: boss_bronjahm.cpp:64
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: