landsandboat/scripts/effects/chainspell.lua

25 lines
658 B
Lua
Raw Permalink Normal View History

2016-01-16 01:26:33 -05:00
-----------------------------------
2021-04-01 15:10:15 -04:00
-- xi.effect.CHAINSPELL
2016-01-16 01:26:33 -05:00
-----------------------------------
---@type TEffect
local effectObject = {}
2016-01-16 01:26:33 -05:00
effectObject.onEffectGain = function(target, effect)
local jpValue = target:getJobPointLevel(xi.jp.CHAINSPELL_EFFECT)
2021-04-01 15:10:15 -04:00
target:addMod(xi.mod.UFASTCAST, 150)
target:addMod(xi.mod.MAGIC_DAMAGE, jpValue * 2)
end
2016-01-16 01:26:33 -05:00
effectObject.onEffectTick = function(target, effect)
end
2016-01-16 01:26:33 -05:00
effectObject.onEffectLose = function(target, effect)
local jpValue = target:getJobPointLevel(xi.jp.CHAINSPELL_EFFECT)
2021-04-01 15:10:15 -04:00
target:delMod(xi.mod.UFASTCAST, 150)
target:delMod(xi.mod.MAGIC_DAMAGE, jpValue * 2)
end
return effectObject