Ive got a custom boss and this LUA script
But whenever somone attacks him my Ascent gives me the following errorfunction corcombat(unit, event, miscunit, misc)
print "Corrupter enterd combat"
Unit:RegisterEvent("cor_HealthCheckA",1000,0)
end
function cor_HealthCheckA(unit, event, miscunit, misc)
if Unit:GetHealthPct() < 20 and Didthat == 0 then
Unit:FullCastSpell(14204)
Didthat = 1
else
end
end
RegisterUnitEvent(150001,1,"corcombat")
Any ideas?Calling 'RegisterEvent' on bad self (Unit expected, got table)
Thanks in advance,
Controlsx2