AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
achievement_sickly_gazelle Class Reference
Inheritance diagram for achievement_sickly_gazelle:
AchievementCriteriaScript ScriptObject

Public Member Functions

 achievement_sickly_gazelle ()
 
bool OnCheck (Player *, Unit *target, uint32) override
 
- Public Member Functions inherited from AchievementCriteriaScript
bool IsDatabaseBound () const override
 
virtual bool OnCheck (Player *, Unit *, uint32)
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
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 ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ achievement_sickly_gazelle()

achievement_sickly_gazelle::achievement_sickly_gazelle ( )
inline
145: AchievementCriteriaScript("achievement_sickly_gazelle") { }
Definition: AchievementCriteriaScript.h:24

Member Function Documentation

◆ OnCheck()

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

Reimplemented from AchievementCriteriaScript.

148 {
149 if (!target)
150 return false;
151
152 if (Player* victim = target->ToPlayer())
153 if (victim->IsMounted())
154 return true;
155
156 return false;
157 }
Player * ToPlayer()
Definition: Object.h:195
Definition: Player.h:1056

References Object::ToPlayer().