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

Public Member Functions

 achievement_abuse_the_ooze ()
 
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_abuse_the_ooze::achievement_abuse_the_ooze ( )
inline
298  : AchievementCriteriaScript("achievement_abuse_the_ooze")
299  {
300  }
AchievementCriteriaScript(const char *name)
Definition: ScriptMgr.cpp:1658

Member Function Documentation

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

Implements AchievementCriteriaScript.

303  {
304  if (!target)
305  return false;
306 
307  if (Creature* Sjonnir = target->ToCreature())
308  if (Sjonnir->AI()->GetData(DATA_ABUSE_THE_OOZE) >= 5)
309  return true;
310 
311  return false;
312  }
Definition: boss_sjonnir.cpp:51
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: