Code:
if(m_uiPhase == 5)
{
if (m_uiSummonVileSpiritTimer < uiDiff)
{
DoCast(me, SPELL_SUMMON_VILE_SPIRIT);
me->SummonCreature(37790, 502 , -2125 , 1040.86023 , 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 999999);
me->SummonCreature(37790, 493 , -2122 , 1040.86023 , 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 999999);
me->SummonCreature(37790, 493 , -2130 , 1040.86023 , 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 999999);
me->SummonCreature(37790, 506 , -2134 , 1040.86023 , 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 999999);
me->SummonCreature(37790, 516 , -2124 , 1040.86023 , 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 999999);
me->SummonCreature(37790, 515 , -2120 , 1040.86023 , 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 999999);
me->SummonCreature(37790, 509 , -2113 , 1040.86023 , 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 999999);
me->SummonCreature(37790, 503 , -2111 , 1040.86023 , 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 999999);
me->SummonCreature(37790, 518 , -2121 , 1040.86023 , 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 999999);
me->SummonCreature(37790, 504 , -2140 , 1040.86023 , 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 999999);
m_uiSummonVileSpiritTimer = 30*IN_MILISECONDS;
}
else m_uiSummonVileSpiritTimer -= uiDiff;
Code:
if (m_uiIcePulsSummonTimer < uiDiff)
{
if (Unit* target = SelectUnit(SELECT_TARGET_RANDOM, 0))
{
DoCast(target, SPELL_SUMMON_ICE_SPEHERE);
Unit->GetMotionMaster()->MovePoint(0,target->GetPositionX(), target->GetPositionY(), target->GetPositionZ());
m_uiIcePulsSummonTimer = 15*IN_MILISECONDS;
}
}