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

Public Member Functions

 achievement_crazy_cat_lady ()
 
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_crazy_cat_lady::achievement_crazy_cat_lady ( )
inline
567  : AchievementCriteriaScript("achievement_crazy_cat_lady")
568  {
569  }
AchievementCriteriaScript(const char *name)
Definition: ScriptMgr.cpp:1658

Member Function Documentation

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

Implements AchievementCriteriaScript.

572  {
573  if (!target)
574  return false;
575 
576  if (Creature* Auriaya = target->ToCreature())
577  if (Auriaya->AI()->GetData(DATA_CRAZY_CAT_LADY))
578  return true;
579 
580  return false;
581  }
Definition: Creature.h:467
Creature * ToCreature()
Definition: Object.h:194
Definition: boss_auriaya.cpp:98

+ Here is the call graph for this function:


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