Stoneharry, that code ends up rooting the mob forever, and he just stands there =S.
Here's the code I have for it.
Code:
function Thrall_Chain_Lightning(Unit, Event)
Unit:StopMovement(9999)
Unit:SetCombatMeleeCapable(1)
Unit:FullCastSpellOnTarget(15117,Unit:GetRandomEnemy(0))
Unit:RegisterEvent("End_Chain", 3000, 0)
end
function Varian_Whirlwind4(Unit, Event)
Unit:StopMovement(9999)
Unit:SetCombatMeleeCapable(1)
Unit:FullCastSpell(8989)
Unit:RegisterEvent("End_Chain", 3000, 0)
end
function End_Chain(Unit, Event)
Unit:RemoveEvents()
Unit:SetCombatMeleeCapable(0)
Unit:StopMovement(0)
end