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

Public Member Functions

 achievement_kologarn_rubble_and_roll ()
 
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_kologarn_rubble_and_roll()

achievement_kologarn_rubble_and_roll::achievement_kologarn_rubble_and_roll ( )
inline
844: AchievementCriteriaScript("achievement_kologarn_rubble_and_roll") {}
Definition: AchievementCriteriaScript.h:24

Member Function Documentation

◆ OnCheck()

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

Reimplemented from AchievementCriteriaScript.

847 {
848 if (target)
849 if (InstanceScript* instance = target->GetInstanceScript())
850 if (Creature* cr = ObjectAccessor::GetCreature(*target, instance->GetGuidData(TYPE_KOLOGARN)))
851 return cr->AI()->GetData(DATA_KOLOGARN_RUBBLE_ACHIEV);
852
853 return false;
854 }
@ DATA_KOLOGARN_RUBBLE_ACHIEV
Definition: boss_kologarn.cpp:139
@ TYPE_KOLOGARN
Definition: ulduar.h:37
Creature * GetCreature(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:210
Definition: Creature.h:43
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1203
Definition: InstanceScript.h:142

References DATA_KOLOGARN_RUBBLE_ACHIEV, ObjectAccessor::GetCreature(), WorldObject::GetInstanceScript(), and TYPE_KOLOGARN.