Skip to content

Commit

Permalink
Bind spells duration has a floor of 5 seconds if not fully resisted.
Browse files Browse the repository at this point in the history
  • Loading branch information
blueBounder committed Dec 25, 2024
1 parent 33519ad commit d82036b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/globals/spells/enfeebling_spell.lua
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,10 @@ xi.spells.enfeebling.useEnfeeblingSpell = function(caster, target, spell)
-- STEP 5: Exceptions.
------------------------------
-- Bind: Dependant on target speed.
-- Bind: Duration floor of 5 seconds.
if spellEffect == xi.effect.BIND then
potency = target:getSpeed()
duration = utils.clamp(duration, 5, 60)

-- TODO: This is unnecesary, but, for now, we will comply with core.
elseif spellEffect == xi.effect.SLEEP_I then
Expand Down

0 comments on commit d82036b

Please sign in to comment.