AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
achievement_xt002_nerf_gravity_bombs Class Reference
Inheritance diagram for achievement_xt002_nerf_gravity_bombs:
AchievementCriteriaScript ScriptObject

Public Member Functions

 achievement_xt002_nerf_gravity_bombs ()
 
bool OnCheck (Player *, Unit *target, uint32) override
 
- Public Member Functions inherited from AchievementCriteriaScript
bool IsDatabaseBound () const override
 
virtual bool OnCheck (Player *, Unit *, uint32)
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 
uint16 GetTotalAvailableHooks ()
 

Additional Inherited Members

- Protected Member Functions inherited from AchievementCriteriaScript
 AchievementCriteriaScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ achievement_xt002_nerf_gravity_bombs()

achievement_xt002_nerf_gravity_bombs::achievement_xt002_nerf_gravity_bombs ( )
inline
1023: AchievementCriteriaScript("achievement_xt002_nerf_gravity_bombs") {}
Definition: AchievementCriteriaScript.h:24

Member Function Documentation

◆ OnCheck()

bool achievement_xt002_nerf_gravity_bombs::OnCheck ( Player ,
Unit target,
uint32   
)
inlineoverridevirtual

Reimplemented from AchievementCriteriaScript.

1026 {
1027 if (target)
1028 if (InstanceScript* instance = target->GetInstanceScript())
1029 if (Creature* cr = ObjectAccessor::GetCreature(*target, instance->GetGuidData(TYPE_XT002)))
1030 return cr->AI()->GetData(DATA_XT002_GRAVITY_ACHIEV);
1031
1032 return false;
1033 }
@ DATA_XT002_GRAVITY_ACHIEV
Definition: boss_xt002.cpp:123
@ TYPE_XT002
Definition: ulduar.h:35
Creature * GetCreature(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:210
Definition: Creature.h:45
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
Definition: InstanceScript.h:142

References DATA_XT002_GRAVITY_ACHIEV, ObjectAccessor::GetCreature(), WorldObject::GetInstanceScript(), and TYPE_XT002.