Skip to content

Commit

Permalink
fix: sharpshooter not applying paralyze
Browse files Browse the repository at this point in the history
This commit aims to fix a problem that occurs when a player cast sharpshooter. 

The main behavior should be remove haste effect (and icon) and apply paralyze, counting with the speed decreasement.
  • Loading branch information
FelipePaluco authored Nov 15, 2024
1 parent 4ee11d6 commit f25ece0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/scripts/spells/support/sharpshooter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)

local speed = Condition(CONDITION_HASTE)
local speed = Condition(CONDITION_PARALYZE)
speed:setParameter(CONDITION_PARAM_TICKS, spellDuration)
speed:setFormula(0.7, 0, 0.7, 0)
speed:setFormula(0.7, 56, 0.7, 56)
combat:addCondition(speed)

local exhaustHealGroup = Condition(CONDITION_SPELLGROUPCOOLDOWN)
Expand Down

0 comments on commit f25ece0

Please sign in to comment.