#include "Unit.h"
◆ RedirectSpellEvent()
AuraEffect * _auraEffect
Definition Unit.h:2350
ObjectGuid _auraOwnerGUID
Definition Unit.h:2349
Unit & _self
Definition Unit.h:2348
◆ Execute()
| bool RedirectSpellEvent::Execute |
( |
uint64 |
e_time, |
|
|
uint32 |
p_time |
|
) |
| |
|
overridevirtual |
Reimplemented from BasicEvent.
8108{
8110 {
8111
8112 if (!auraOwner->HasSpellMagnetAura())
8113 return true;
8114
8116 for (Unit::AuraEffectList::const_iterator itr = magnetAuras.begin(); itr != magnetAuras.end(); ++itr)
8118 {
8120 return true;
8121 }
8122 }
8123
8124 return true;
8125}
@ SPELL_AURA_SPELL_MAGNET
Definition SpellAuraDefines.h:159
@ AURA_REMOVE_BY_DEFAULT
Definition SpellAuraDefines.h:392
std::vector< AuraEffect * > AuraEffectList
Definition Unit.h:680
Unit * GetUnit(WorldObject const &, ObjectGuid const &guid)
Definition ObjectAccessor.cpp:199
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