Hello there, I'd like some help with a Lua that has an error when I start it. Here it is:
The error I get is: 21:15 N LuaEngine: Shadowbolt.lua...function Boss_Bolt (pUnit, event)
pUnit:CastSpell (36972)
end
function Boss_Bolt (pUnit, event)
if pUnit:GetHealthPct() < 99 then
pUnit:RemoveEvents()
pUnit:RegisterEvent("Boss_Bolt",10000, 0)
end
end
function Boss_OnCombat(pUnit, event)
pUnit:RegisterEvent("Boss_Bolt",10000, 0)
end
RegisterpUnitEvent(6600003, 1, "Boss_OnCombat")
failed. <could not load>
scripts\Shadowbolt.lua:17: ')' expected near 'Boss_OnCombat'
I've sat with it for pretty long but can't see what the error is.... Please help me