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

Public Member Functions

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

Member Function Documentation

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

Implements AchievementCriteriaScript.

159  {
160  if (!target)
161  return false;
162 
163  if (Player* victim = target->ToPlayer())
164  if (victim->IsMounted())
165  return true;
166 
167  return false;
168  }
Player * ToPlayer()
Definition: Object.h:191

+ Here is the call graph for this function:


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