AzeorthCore 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
 

Additional Inherited Members

- Protected Member Functions inherited from AchievementCriteriaScript
 AchievementCriteriaScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name)
 
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
1350: AchievementCriteriaScript("achievement_ive_gone_and_made_a_mess") { }
Definition: ScriptMgr.h:975

Member Function Documentation

◆ OnCheck()

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

Reimplemented from AchievementCriteriaScript.

1353 {
1354 if (target)
1355 if (Creature* saurfang = target->ToCreature())
1356 if (saurfang->AI()->GetData(DATA_MADE_A_MESS))
1357 return true;
1358
1359 return false;
1360 }
#define DATA_MADE_A_MESS
Definition: boss_deathbringer_saurfang.cpp:201
Definition: Creature.h:46
Creature * ToCreature()
Definition: Object.h:197

References DATA_MADE_A_MESS, and Object::ToCreature().