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

Public Member Functions

 achievement_volunteer_work ()
 
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_volunteer_work()

achievement_volunteer_work::achievement_volunteer_work ( )
inline
720 : AchievementCriteriaScript("achievement_volunteer_work")
721 {
722 }
Definition: ScriptMgr.h:975

Member Function Documentation

◆ OnCheck()

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

Reimplemented from AchievementCriteriaScript.

725 {
726 if (Creature const* jedoga = target ? target->ToCreature() : nullptr)
727 {
728 return jedoga->AI()->GetData(DATA_VOLUNTEER_WORK) == 1;
729 }
730
731 return false;
732 }
@ DATA_VOLUNTEER_WORK
Definition: boss_jedoga_shadowseeker.cpp:86
Definition: Creature.h:46
Creature * ToCreature()
Definition: Object.h:197

References DATA_VOLUNTEER_WORK, and Object::ToCreature().