So im still pretty new at Lua functions, but i have made a working 12 phase boss fight, and have never gotten this error before.
the error is:
scripts\BOSS_Torarghr.lua:8: Reference creation failed! <Togarghr_Shield_Crush> is not a valid Lua Function.
the script looks like
Code:
function Togarghr_OnCombat(Unit, Event)
Unit:SendChatMessage(14, 0, "Challenge accepted!")
Unit:RegisterEvent("Togarghr_Shield_Crush", 13000, 0) (THIS IS LINE 8)
Unit:RegisterEvent("Togarghr_Phase1", 1000, 0)
end
end
function Togarghr_Legion_Shield_Crush(Unit, Event)
Unit:FullCastSpellOnTarget(60899, Unit:GetMainTank())
end
RegisterUnitEvent(999007, 1, "Togarghr_OnCombat")
I am not sure what is wrong, so please help, will be much appreciated!