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

Public Member Functions

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

Member Function Documentation

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

Implements AchievementCriteriaScript.

1148  {
1149  if (target)
1150  if (Creature* razorscale = target->ToCreature())
1151  if (razorscale->AI()->GetData(DATA_QUICK_SHAVE))
1152  return true;
1153 
1154  return false;
1155  }
Definition: Creature.h:467
Definition: boss_razorscale.cpp:143
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: