TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
achievement_ive_gone_and_made_a_mess Class Reference

Public Member Functions

 achievement_ive_gone_and_made_a_mess ()
 
bool OnCheck (Player *, Unit *target) override
 
- Public Member Functions inherited from ScriptObject
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 ()
 

Constructor & Destructor Documentation

achievement_ive_gone_and_made_a_mess::achievement_ive_gone_and_made_a_mess ( )
inline
1329 : AchievementCriteriaScript("achievement_ive_gone_and_made_a_mess") { }
AchievementCriteriaScript(const char *name)
Definition: ScriptMgr.cpp:1658

Member Function Documentation

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

Implements AchievementCriteriaScript.

1332  {
1333  if (target)
1334  if (Creature* saurfang = target->ToCreature())
1335  if (saurfang->AI()->GetData(DATA_MADE_A_MESS))
1336  return true;
1337 
1338  return false;
1339  }
Definition: boss_deathbringer_saurfang.cpp:204
Definition: Creature.h:467
Creature * ToCreature()
Definition: Object.h:194

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: