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

Public Member Functions

 achievement_freya_getting_back_to_nature ()
 
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_freya_getting_back_to_nature()

achievement_freya_getting_back_to_nature::achievement_freya_getting_back_to_nature ( )
inline
1256: AchievementCriteriaScript("achievement_freya_getting_back_to_nature") {}
Definition: ScriptMgr.h:975

Member Function Documentation

◆ OnCheck()

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

Reimplemented from AchievementCriteriaScript.

1259 {
1260 if (target)
1261 if (target->GetAI()->GetData(DATA_BACK_TO_NATURE))
1262 return true;
1263 return false;
1264 }
@ DATA_BACK_TO_NATURE
Definition: boss_freya.cpp:240
virtual uint32 GetData(uint32) const
Definition: UnitAI.h:202
UnitAI * GetAI()
Definition: Unit.h:1316

References DATA_BACK_TO_NATURE, Unit::GetAI(), and UnitAI::GetData().