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

Public Member Functions

 SpectralBlastCheck (Unit *victim)
 
bool operator() (WorldObject *unit)
 

Private Attributes

Unit_victim
 

Detailed Description

Constructor & Destructor Documentation

◆ SpectralBlastCheck()

SpectralBlastCheck::SpectralBlastCheck ( Unit victim)
inline
628: _victim(victim) { }
Unit * _victim
Definition: boss_kalecgos.cpp:635

Member Function Documentation

◆ operator()()

bool SpectralBlastCheck::operator() ( WorldObject unit)
inline
631 {
632 return unit->GetPositionZ() < 50.0f || unit->ToUnit()->HasAura(SPELL_SPECTRAL_EXHAUSTION) || unit->GetGUID() == _victim->GetGUID();
633 }
@ SPELL_SPECTRAL_EXHAUSTION
Definition: boss_kalecgos.cpp:50
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:109
Unit * ToUnit()
Definition: Object.h:206
float GetPositionZ() const
Definition: Position.h:119
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5669

References _victim, Object::GetGUID(), Position::GetPositionZ(), Unit::HasAura(), SPELL_SPECTRAL_EXHAUSTION, and Object::ToUnit().

Member Data Documentation

◆ _victim

Unit* SpectralBlastCheck::_victim
private

Referenced by operator()().