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

Public Member Functions

 achievement_consumption_junction ()
 
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
 
uint16 GetTotalAvailableHooks ()
 

Additional Inherited Members

- Protected Member Functions inherited from AchievementCriteriaScript
 AchievementCriteriaScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ achievement_consumption_junction()

achievement_consumption_junction::achievement_consumption_junction ( )
inline
246 : AchievementCriteriaScript("achievement_consumption_junction")
247 {
248 }
Definition: AchievementCriteriaScript.h:24

Member Function Documentation

◆ OnCheck()

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

Reimplemented from AchievementCriteriaScript.

251 {
252 if (!target)
253 return false;
254
255 return target->GetAuraCount(sSpellMgr->GetSpellIdForDifficulty(SPELL_CONSUME_AURA, target)) < 10;
256 }
@ SPELL_CONSUME_AURA
Definition: boss_trollgore.cpp:49
#define sSpellMgr
Definition: SpellMgr.h:825
uint32 GetAuraCount(uint32 spellId) const
Definition: Unit.cpp:5682

References Unit::GetAuraCount(), SPELL_CONSUME_AURA, and sSpellMgr.