function cor_HealthCheckA(Unit)
if Unit:GetHealthPct() < 66 and Didthat == 0 then
x = Unit:GetX()
y = Unit:GetY()
z = Unit:GetZ()
Unit:SpawnCreature(519203, x, y, z, 0, 17, 60000);
Unit:SpawnCreature(519203, x, y, z, 0, 17, 60000);
Didthat = 1
else
end
end
function cor_HealthCheckB(Unit)
if Unit:GetHealthPct() < 33 and Didthat == 1 then
Unit:FullCastSpell(14204)
x = Unit:GetX()
y = Unit:GetY()
z = Unit:GetZ()
Unit:SpawnCreature(519203, x, y, z, 0, 17, 60000);
Unit:SpawnCreature(519203, x, y, z, 0, 17, 60000);
Didthat = 2
else
end
end
function cor(unit, event, miscunit, misc)
print "Anzu"
unit:RegisterEvent("cor_HealthCheckA",1000,0)
unit:RegisterEvent("cor_HealthCheckB",1000,0)
end
function Speak_OnCombat(Unit, Event)
print "enter combat"
Unit:SendChatMessage(11, 0, "You Dare Defile Me?!?!")
end
RegisterUnitEvent(150001,1,"cor")
RegisterUnitEvent(150001,1,"Speak_OnCombat")