2849 {
2850 if (targets.empty())
2851 return;
2852
2854 if (
Unit* summoner = summon->GetSummonerUnit())
2855 summoner->GetAI()->SetData(
DATA_VILE, 1);
2856
2858 {
2860 c->GetMotionMaster()->Clear(true);
2861 c->StopMoving();
2863 c->DespawnOrUnsummon(3000);
2865 }
2866 }
@ UNIT_FLAG_NOT_SELECTABLE
Definition: UnitDefines.h:254
@ SPELL_SPIRIT_BURST
Definition: boss_the_lich_king.cpp:156
@ SPELL_VILE_SPIRIT_DAMAGE_SEARCH
Definition: boss_the_lich_king.cpp:155
#define DATA_VILE
Definition: boss_the_lich_king.cpp:361
Definition: Creature.h:46
Definition: TemporarySummon.h:40
Unit * GetCaster()
Definition: SpellScript.cpp:401