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
1291: 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.

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

References DATA_MADE_A_MESS, and Object::ToCreature().