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

Public Member Functions

 achievement_volunteer_work ()
 
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_volunteer_work::achievement_volunteer_work ( )
inline
587  : AchievementCriteriaScript("achievement_volunteer_work")
588  {
589  }
AchievementCriteriaScript(const char *name)
Definition: ScriptMgr.cpp:1658

Member Function Documentation

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

Implements AchievementCriteriaScript.

592  {
593  if (!target)
594  return false;
595 
596  if (Creature* Jedoga = target->ToCreature())
597  if (Jedoga->AI()->GetData(DATA_VOLUNTEER_WORK))
598  return true;
599 
600  return false;
601  }
Definition: boss_jedoga_shadowseeker.cpp:55
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: