AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
SindragosaIceTombCheck Class Reference

Public Member Functions

bool operator() (Unit *unit) const
 
bool operator() (WorldObject *object) const
 

Detailed Description

Member Function Documentation

◆ operator()() [1/2]

bool SindragosaIceTombCheck::operator() ( Unit unit) const
inline
1006 {
1008 }
@ SPELL_FROST_IMBUED_BLADE
Definition: boss_sindragosa.cpp:100
@ SPELL_SCHOOL_MASK_ALL
Definition: SharedDefines.h:315
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5698
bool IsImmunedToDamageOrSchool(SpellSchoolMask meleeSchoolMask) const
Definition: Unit.cpp:12901

References Unit::HasAura(), Unit::IsImmunedToDamageOrSchool(), SPELL_FROST_IMBUED_BLADE, and SPELL_SCHOOL_MASK_ALL.

◆ operator()() [2/2]

bool SindragosaIceTombCheck::operator() ( WorldObject object) const
inline
1011 {
1012 return object->ToUnit() && (object->ToUnit()->HasAura(SPELL_FROST_IMBUED_BLADE) || object->ToUnit()->IsImmunedToDamageOrSchool(SPELL_SCHOOL_MASK_ALL));
1013 }

References SPELL_FROST_IMBUED_BLADE, and SPELL_SCHOOL_MASK_ALL.