diff --git a/scripts/effects/composure.lua b/scripts/effects/composure.lua index b40ea0575e1..9721a9d5101 100644 --- a/scripts/effects/composure.lua +++ b/scripts/effects/composure.lua @@ -8,8 +8,10 @@ local effectObject = {} effectObject.onEffectGain = function(target, effect) local jpValue = target:getJobPointLevel(xi.jp.COMPOSURE_EFFECT) + local cLevel = target:getMainLevel() + local accPower = math.floor(((24 * cLevel) + 74) / 49) - target:addMod(xi.mod.ACC, 15 + jpValue) + target:addMod(xi.mod.ACC, accPower + jpValue) end effectObject.onEffectTick = function(target, effect) @@ -17,8 +19,10 @@ end effectObject.onEffectLose = function(target, effect) local jpValue = target:getJobPointLevel(xi.jp.COMPOSURE_EFFECT) + local cLevel = target:getMainLevel() + local accPower = math.floor(((24 * cLevel) + 74) / 49) - target:delMod(xi.mod.ACC, 15 + jpValue) + target:delMod(xi.mod.ACC, accPower + jpValue) end return effectObject