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

Public Member Functions

 achievement_shadowdodger ()
 
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_shadowdodger::achievement_shadowdodger ( )
inline
546  : AchievementCriteriaScript("achievement_shadowdodger")
547  {
548  }
AchievementCriteriaScript(const char *name)
Definition: ScriptMgr.cpp:1658

Member Function Documentation

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

Implements AchievementCriteriaScript.

551  {
552  if (!target)
553  return false;
554 
555  if (Creature* Vezax = target->ToCreature())
556  if (Vezax->AI()->GetData(DATA_SHADOWDODGER))
557  return true;
558 
559  return false;
560  }
Definition: boss_general_vezax.cpp:96
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: