mirror of
https://github.com/emagi/eq2emu-content
synced 2026-08-12 20:23:03 -04:00
33 lines
707 B
Lua
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
|