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

Public Member Functions

 achievement_kologarn_with_open_arms ()
 
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_with_open_arms()

achievement_kologarn_with_open_arms::achievement_kologarn_with_open_arms ( )
inline
860: AchievementCriteriaScript("achievement_kologarn_with_open_arms") {}
Definition: AchievementCriteriaScript.h:24

Member Function Documentation

◆ OnCheck()

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

Reimplemented from AchievementCriteriaScript.

863 {
864 if (target)
865 if (InstanceScript* instance = target->GetInstanceScript())
866 if (Creature* cr = ObjectAccessor::GetCreature(*target, instance->GetGuidData(TYPE_KOLOGARN)))
867 return cr->AI()->GetData(DATA_KOLOGARN_ARMS_ACHIEV);
868
869 return false;
870 }
@ DATA_KOLOGARN_ARMS_ACHIEV
Definition: boss_kologarn.cpp:140
@ TYPE_KOLOGARN
Definition: ulduar.h:37
Creature * GetCreature(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:213
Definition: Creature.h:46
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
Definition: InstanceScript.h:142

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