Skip to content

Commit

Permalink
Treat Resonating Arrow as a buff (as well).
Browse files Browse the repository at this point in the history
  • Loading branch information
Hekili committed Mar 25, 2021
1 parent 6f54ee4 commit eb9765d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Classes/HunterBeastMastery.lua
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,10 @@ if UnitClassBase( "player" ) == "HUNTER" then
if debuff.tar_trap.up then
debuff.tar_trap.expires = debuff.tar_trap.applied + 30
end

if active_dot.resonating_arrow > 0 then
applyBuff( "resonating_arrow", max( debuff.resonating_arrow.remains, action.resonating_arrow.lastCast + buff.resonating_arrow.duration ) )
end
end )


Expand Down Expand Up @@ -1778,6 +1782,7 @@ if UnitClassBase( "player" ) == "HUNTER" then
handler = function ()
applyDebuff( "target", "resonating_arrow" )
active_dot.resonating_arrow = active_enemies
applyBuff( "resonating_arrow" )
end,

toggle = "essences",
Expand Down
4 changes: 4 additions & 0 deletions Classes/HunterMarksmanship.lua
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,10 @@ if UnitClassBase( "player" ) == "HUNTER" then

if now - action.volley.lastCast < 6 then applyBuff( "volley", 6 - ( now - action.volley.lastCast ) ) end

if active_dot.resonating_arrow > 0 then
applyBuff( "resonating_arrow", max( debuff.resonating_arrow.remains, action.resonating_arrow.lastCast + buff.resonating_arrow.duration ) )
end

last_steady_focus = nil
end )

Expand Down
4 changes: 4 additions & 0 deletions Classes/HunterSurvival.lua
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,10 @@ if UnitClassBase( "player" ) == "HUNTER" then
if debuff.tar_trap.up then
debuff.tar_trap.expires = debuff.tar_trap.applied + 30
end

if active_dot.resonating_arrow > 0 then
applyBuff( "resonating_arrow", max( debuff.resonating_arrow.remains, action.resonating_arrow.lastCast + buff.resonating_arrow.duration ) )
end
end )

spec:RegisterHook( "specializationChanged", function ()
Expand Down

0 comments on commit eb9765d

Please sign in to comment.