2671 {
2672 if (targets.empty())
2673 return;
2675 if (!caster)
2676 {
2677 targets.clear();
2678 return;
2679 }
2686 if (s->GetSpellInfo()->Id ==
SPELL_DEFILE && s->m_targets.GetUnitTarget())
2687 targets.remove(s->m_targets.GetUnitTarget());
2688
2689 if (targets.empty())
2690 return;
2691
2693 targets.clear();
2697 }
@ CURRENT_GENERIC_SPELL
Definition: Unit.h:538
@ SPELL_BOSS_HITTIN_YA_AURA
Definition: boss_the_lich_king.cpp:84
@ SPELL_DEFILE
Definition: boss_the_lich_king.cpp:136
@ SPELL_HARVEST_SOUL_VALKYR
Definition: boss_the_lich_king.cpp:145
@ DATA_THE_LICH_KING
Definition: icecrown_citadel.h:104
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:213
virtual void SetGUID(ObjectGuid, int32=0)
Definition: UnitAI.h:215
Definition: Creature.h:46
CreatureAI * AI() const
Definition: Creature.h:143
Creature * ToCreature()
Definition: Object.h:202
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:109
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
Definition: GridNotifiers.h:1627
Definition: InstanceScript.h:142
SpellInfo const * GetSpellInfo()
Definition: SpellScript.cpp:411