#include "Unit.h"
◆ RedirectSpellEvent()
AuraEffect * _auraEffect
Definition Unit.h:2376
ObjectGuid _auraOwnerGUID
Definition Unit.h:2375
Unit & _self
Definition Unit.h:2374
◆ Execute()
| bool RedirectSpellEvent::Execute |
( |
uint64 |
e_time, |
|
|
uint32 |
p_time |
|
) |
| |
|
overridevirtual |
Reimplemented from BasicEvent.
7923{
7925 {
7926
7927 if (!auraOwner->HasSpellMagnetAura())
7928 return true;
7929
7931 for (Unit::AuraEffectList::const_iterator itr = magnetAuras.begin(); itr != magnetAuras.end(); ++itr)
7933 {
7935 return true;
7936 }
7937 }
7938
7939 return true;
7940}
@ SPELL_AURA_SPELL_MAGNET
Definition SpellAuraDefines.h:159
@ AURA_REMOVE_BY_DEFAULT
Definition SpellAuraDefines.h:392
std::vector< AuraEffect * > AuraEffectList
Definition Unit.h:686
Unit * GetUnit(WorldObject const &, ObjectGuid const &guid)
Definition ObjectAccessor.cpp:223
References _auraEffect, _auraOwnerGUID, _self, AURA_REMOVE_BY_DEFAULT, Unit::GetAuraEffectsByType(), ObjectAccessor::GetUnit(), and SPELL_AURA_SPELL_MAGNET.
◆ _auraEffect
◆ _auraOwnerGUID
◆ _self
| Unit& RedirectSpellEvent::_self |
|
protected |
The documentation for this class was generated from the following files:
- azerothcore-wotlk/src/server/game/Entities/Unit/Unit.h
- azerothcore-wotlk/src/server/game/Entities/Unit/Unit.cpp