3215 {
3216 for (std::list<WorldObject*>::const_iterator itr = unitList.begin(); itr != unitList.end(); ++itr)
3222 {
3223 spawner->RemoveAllAuras();
3224 spawner->m_Events.KillAllEvents(true);
3225 }
3226
3227 std::list<Creature*> spirits;
3229 for (std::list<Creature*>::iterator itr = spirits.begin(); itr != spirits.end(); ++itr)
3230 {
3231 (*itr)->m_Events.KillAllEvents(true);
3232 (*itr)->RemoveAllAuras();
3233 (*itr)->AI()->EnterEvadeMode();
3235 }
3236 }
@ REACT_PASSIVE
Definition: Unit.h:548
@ ACTION_TELEPORT_BACK
Definition: boss_the_lich_king.cpp:342
@ SPELL_HARVEST_SOUL_TELEPORT
Definition: boss_the_lich_king.cpp:160
@ SPELL_HARVEST_SOULS_TELEPORT
Definition: boss_the_lich_king.cpp:165
@ NPC_WICKED_SPIRIT
Definition: icecrown_citadel.h:366
@ NPC_WORLD_TRIGGER_INFINITE_AOI
Definition: icecrown_citadel.h:369
@ DATA_THE_LICH_KING
Definition: icecrown_citadel.h:104
Creature * GetCreature(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:213
Definition: Creature.h:46
Unit * ToUnit()
Definition: Object.h:206
void GetCreatureListWithEntryInGrid(std::list< Creature * > &lList, uint32 uiEntry, float fMaxSearchRange) const
Definition: Object.cpp:2500
ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:95
Unit * GetCaster()
Definition: SpellScript.cpp:401
InstanceScript * _instance
Definition: boss_the_lich_king.cpp:3244