eq2emu-content/Spells/AtrebasEtherealBindings.lua
2024-10-26 11:37:28 +00:00

33 lines
707 B
Lua

--[[
Script Name : Spells/AtrebasEtherealBindings.lua
Script Author : LordPazuzu
Script Date : 2024.05.16 04:05:52
Script Purpose :
:
--]]
function precast(Caster, Target)
-- Does not affect Epic targets
if IsEpic(Target) then
return false, 43
end
return true
end
function cast(Caster, Target)
-- Roots target
AddControlEffect(Target, 5)
-- 10% chance to dispel when target takes damage
AddProc(Target, 15, 10.0)
end
function proc(Caster, Target, Type)
if Type == 15 then
CancelSpell()
end
end
function remove(Caster, Target)
RemoveControlEffect(Target, 5)
end