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

Public Member Functions

 achievement_ive_gone_and_made_a_mess ()
 
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_ive_gone_and_made_a_mess()

achievement_ive_gone_and_made_a_mess::achievement_ive_gone_and_made_a_mess ( )
inline
1290: AchievementCriteriaScript("achievement_ive_gone_and_made_a_mess") { }
Definition: AchievementCriteriaScript.h:24

Member Function Documentation

◆ OnCheck()

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

Reimplemented from AchievementCriteriaScript.

1293 {
1294 if (target)
1295 if (Creature* saurfang = target->ToCreature())
1296 if (saurfang->AI()->GetData(DATA_MADE_A_MESS))
1297 return true;
1298
1299 return false;
1300 }
#define DATA_MADE_A_MESS
Definition: boss_deathbringer_saurfang.cpp:203
Definition: Creature.h:46
Creature * ToCreature()
Definition: Object.h:202

References DATA_MADE_A_MESS, and Object::ToCreature().