2696 {
2697 if (targets.empty())
2698 return;
2700 if (!caster)
2701 {
2702 targets.clear();
2703 return;
2704 }
2711 if (s->GetSpellInfo()->Id ==
SPELL_DEFILE && s->m_targets.GetUnitTarget())
2712 targets.remove(s->m_targets.GetUnitTarget());
2713
2714 if (targets.empty())
2715 return;
2716
2718 targets.clear();
2722 }
@ SPELL_BOSS_HITTIN_YA_AURA
Definition: boss_the_lich_king.cpp:85
@ SPELL_DEFILE
Definition: boss_the_lich_king.cpp:137
@ SPELL_HARVEST_SOUL_VALKYR
Definition: boss_the_lich_king.cpp:146
@ DATA_THE_LICH_KING
Definition: icecrown_citadel.h:98
@ CURRENT_GENERIC_SPELL
Definition: Unit.h:538
auto SelectRandomContainerElement(C const &container) -> typename std::add_const< decltype(*std::begin(container))>::type &
Definition: Containers.h:133
Creature * GetCreature(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:210
virtual void SetGUID(ObjectGuid, int32=0)
Definition: UnitAI.h:215
Definition: Creature.h:43
CreatureAI * AI() const
Definition: Creature.h:140
Creature * ToCreature()
Definition: Object.h:205
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:112
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1203
Definition: GridNotifiers.h:1627
Definition: InstanceScript.h:142
SpellInfo const * GetSpellInfo()
Definition: SpellScript.cpp:411