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

Public Member Functions

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

Member Function Documentation

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

Implements AchievementCriteriaScript.

1075  {
1076  if (!target || !target->GetAI())
1077  return false;
1078 
1079  return !(target->GetAI()->GetData(DATA_GRAVITY_BOMB_CASUALTY));
1080  }
UnitAI * GetAI()
Definition: Unit.h:1331
Definition: boss_xt002.cpp:150
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: