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

Public Member Functions

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

Member Function Documentation

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

Implements AchievementCriteriaScript.

181  {
182  if (!target)
183  return false;
184 
185  if (Creature* Moorabi = target->ToCreature())
186  if (Moorabi->AI()->GetData(DATA_LESS_RABI))
187  return true;
188 
189  return false;
190  }
Definition: boss_moorabi.cpp:59
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: