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

Public Member Functions

 achievement_doesnt_go_to_eleven ()
 
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_doesnt_go_to_eleven::achievement_doesnt_go_to_eleven ( )
inline
324 : AchievementCriteriaScript("achievement_doesnt_go_to_eleven") { }
AchievementCriteriaScript(const char *name)
Definition: ScriptMgr.cpp:1658

Member Function Documentation

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

Implements AchievementCriteriaScript.

327  {
328  if (target)
329  if (Creature* garfrost = target->ToCreature())
330  if (garfrost->AI()->GetData(ACHIEV_DOESNT_GO_TO_ELEVEN) <= 10)
331  return true;
332 
333  return false;
334  }
Definition: Creature.h:467
Creature * ToCreature()
Definition: Object.h:194
Definition: boss_forgemaster_garfrost.cpp:62

+ Here is the call graph for this function:


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