Skip to content

Commit

Permalink
Survival: Minor fix to tier 30 CDR.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hekili committed Aug 2, 2023
1 parent 913cf68 commit dc38827
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions Dragonflight/HunterSurvival.lua
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ spec:RegisterHook( "reset_precast", function()
end )

spec:RegisterHook( "spend", function( amt, resource )
if set_bonus.tier30_4pc > 0 and amt >= 30 then
if set_bonus.tier30_4pc > 0 and amt >= 30 and resource == "focus" then
local sec = floor( amt / 30 )
gainChargeTime( "wildfire_bomb", sec )
gainChargeTime( "shrapnel_bomb", sec )
Expand All @@ -574,16 +574,6 @@ spec:RegisterHook( "specializationChanged", function ()
current_wildfire_bomb = nil
end )

spec:RegisterHook( "spend", function( amt, resource )
if set_bonus.tier30_4pc > 0 and amt > 25 and resource == "focus" then
local cdr = floor( amt / 25 )
reduceCooldown( "wildfire_bomb", cdr )
reduceCooldown( "shrapnel_bomb", cdr )
reduceCooldown( "pheromone_bomb", cdr )
reduceCooldown( "volatile_bomb", cdr )
end
end )

spec:RegisterStateTable( "next_wi_bomb", setmetatable( {}, {
__index = function( t, k )
if k == "shrapnel" then return current_wildfire_bomb == "shrapnel_bomb"
Expand Down

0 comments on commit dc38827

Please sign in to comment.