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

Public Member Functions

 achievement_portal_jockey ()
 
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_portal_jockey()

achievement_portal_jockey::achievement_portal_jockey ( )
inline
1510: AchievementCriteriaScript("achievement_portal_jockey") { }
Definition: ScriptMgr.h:975

Member Function Documentation

◆ OnCheck()

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

Reimplemented from AchievementCriteriaScript.

1513 {
1514 return target && target->GetEntry() == NPC_VALITHRIA_DREAMWALKER && !target->GetAI()->GetData(MISSED_PORTALS);
1515 }
@ MISSED_PORTALS
Definition: boss_valithria_dreamwalker.cpp:143
@ NPC_VALITHRIA_DREAMWALKER
Definition: icecrown_citadel.h:304
virtual uint32 GetData(uint32) const
Definition: UnitAI.h:197
uint32 GetEntry() const
Definition: Object.h:109
UnitAI * GetAI()
Definition: Unit.h:1316

References Unit::GetAI(), UnitAI::GetData(), Object::GetEntry(), MISSED_PORTALS, and NPC_VALITHRIA_DREAMWALKER.