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

Public Member Functions

 achievement_auriaya_crazy_cat_lady ()
 
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_auriaya_crazy_cat_lady()

achievement_auriaya_crazy_cat_lady::achievement_auriaya_crazy_cat_lady ( )
inline
453: AchievementCriteriaScript("achievement_auriaya_crazy_cat_lady") {}
Definition: AchievementCriteriaScript.h:24

Member Function Documentation

◆ OnCheck()

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

Reimplemented from AchievementCriteriaScript.

456 {
457 if (target)
458 if (InstanceScript* instance = target->GetInstanceScript())
459 if (Creature* cr = ObjectAccessor::GetCreature(*target, instance->GetGuidData(TYPE_AURIAYA)))
460 return cr->AI()->GetData(DATA_CRAZY_CAT);
461
462 return false;
463 }
@ DATA_CRAZY_CAT
Definition: boss_auriaya.cpp:102
@ TYPE_AURIAYA
Definition: ulduar.h:38
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_CRAZY_CAT, ObjectAccessor::GetCreature(), WorldObject::GetInstanceScript(), and TYPE_AURIAYA.