From 44e2699cc1fd5198ac645630bf1446d7a474ce34 Mon Sep 17 00:00:00 2001 From: Will Buck Date: Fri, 2 May 2025 15:46:21 -0500 Subject: [PATCH] Implement enfeeb mag duration mod --- scripts/globals/spells/enfeebling_spell.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/globals/spells/enfeebling_spell.lua b/scripts/globals/spells/enfeebling_spell.lua index 1a294ca487e..f67704bacdd 100644 --- a/scripts/globals/spells/enfeebling_spell.lua +++ b/scripts/globals/spells/enfeebling_spell.lua @@ -324,6 +324,8 @@ xi.spells.enfeebling.calculateDuration = function(caster, target, spellId, spell duration = duration + caster:getJobPointLevel(xi.jp.STYMIE_EFFECT) end end + + duration = math.floor(duration * (1 + caster:getMod(xi.mod.ENF_MAG_DURATION) / 100)) end ---@cast duration integer