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

Public Member Functions

 achievement_assembly_of_iron (char const *name, uint32 entry)
 
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 ()
 

Private Attributes

uint32 const _targetEntry
 

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_assembly_of_iron()

achievement_assembly_of_iron::achievement_assembly_of_iron ( char const *  name,
uint32  entry 
)
inline
919 _targetEntry(entry)
920 {
921 }
Definition: AchievementCriteriaScript.h:24
uint32 const _targetEntry
Definition: boss_assembly_of_iron.cpp:929

Member Function Documentation

◆ OnCheck()

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

Reimplemented from AchievementCriteriaScript.

924 {
925 return target && target->GetAuraCount(SPELL_SUPERCHARGE) >= 2 && (!_targetEntry || target->GetEntry() == _targetEntry);
926 }
@ SPELL_SUPERCHARGE
Definition: boss_assembly_of_iron.cpp:30
uint32 GetEntry() const
Definition: Object.h:112
uint32 GetAuraCount(uint32 spellId) const
Definition: Unit.cpp:5653

References _targetEntry, Unit::GetAuraCount(), Object::GetEntry(), and SPELL_SUPERCHARGE.

Member Data Documentation

◆ _targetEntry

uint32 const achievement_assembly_of_iron::_targetEntry
private

Referenced by OnCheck().