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

Public Member Functions

 achievement_xt002_nerf_engineering ()
 
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
 

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 ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ achievement_xt002_nerf_engineering()

achievement_xt002_nerf_engineering::achievement_xt002_nerf_engineering ( )
inline
1049: AchievementCriteriaScript("achievement_xt002_nerf_engineering") {}
Definition: ScriptMgr.h:975

Member Function Documentation

◆ OnCheck()

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

Reimplemented from AchievementCriteriaScript.

1052 {
1053 if (target)
1054 if (InstanceScript* instance = target->GetInstanceScript())
1055 if (Creature* cr = ObjectAccessor::GetCreature(*target, instance->GetGuidData(TYPE_XT002)))
1056 return cr->AI()->GetData(DATA_XT002_NERF_ENGINEERING);
1057
1058 return false;
1059 }
@ DATA_XT002_NERF_ENGINEERING
Definition: boss_xt002.cpp:120
@ TYPE_XT002
Definition: ulduar.h:36
Creature * GetCreature(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:215
Definition: Creature.h:46
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1194
Definition: InstanceScript.h:140

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