You can clean your script by removing miscunits and miscs
the problem here is, LUA is case sensitive. You need to have big letters right.
Change all unit, event to Unit, Event.
In function Immovable, either dont have Event .
Repaired it for you anyways.
Code:
--[[ Morphrim the Immovable ]]--
function Immovable_CurseofBlood(Unit, Event)
print "Immovable CurseofBlood"
Unit:FullCastSpellOnTarget(40412, Unit:GetClosestPlayer())
Unit:SendChatMessage(11, 0, "Feel the curse of the Monolith!")
end
function Immovable_RockShell(Unit, Event)
print "Immovable RockShell"
Unit:FullCasSpell(33810)
Unit:SendChatMessage(11, 0, "My skin is as hard as rock! Do you relaly think your mortal weapons could hurt me?!")
end
function Immovable_StoneGaze(Unit, Event)
print "Immovable StoneGaze"
Unit:FullCastSpellOnTarget(33128, Unit:GetClosestPlayer())
Unit:SendChatMessage(11, 0, "Do you know how you feel when you are a statue? You will learn it!")
end
function Immovable_ShellofLife(Unit, Event)
print "Immovable ShellofLife"
Unit:FullCastSpell(33810)
Unit:SendChatMessage(11, 0, "Do you seriously think these pathetic spells have even a little chance to hurt me?")
end
function Immovable(Unit, Event)
print "Immovable"
Unit:RegisterEvent("Immovable_CurseofBlood", 10000, 0)
Unit:RegisterEvent("Immovable_RockShell", 25000, 0)
Unit:RegisterEvent("Immovable_StoneGaze", 21000, 0)
Unit:RegisterEvent("Immovable_ShellofLife", 25000, 0)
end
RegisterUnitEvent(20905, 1, "Immovable")