Skip to content

Commit

Permalink
fix(Fire): Fix errant InFlight check for Scorch
Browse files Browse the repository at this point in the history
  • Loading branch information
Cilraaz committed Aug 24, 2023
1 parent 2ed0835 commit f7fb170
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion HeroRotation_Mage/Fire.lua
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,8 @@ local function StandardRotation()
if Cast(S.Flamestrike, nil, nil, not Target:IsInRange(40)) then return "flamestrike standard_rotation 12"; end
end
-- scorch,if=improved_scorch.active&debuff.improved_scorch.remains<action.pyroblast.cast_time+5*gcd.max&buff.fury_of_the_sun_king.up&!action.scorch.in_flight
if S.Scorch:IsReady() and (ImprovedScorchActive() and Target:DebuffRemains(S.ImprovedScorchDebuff) < S.Pyroblast:CastTime() + 5 * GCDMax and Player:BuffUp(S.FuryoftheSunKingBuff) and not S.Scorch:InFlight()) then
-- Note: Using IsCasting check for !action.scorch.in_flight, since Scorch is an instant hit ability with no travel time.
if S.Scorch:IsReady() and (ImprovedScorchActive() and Target:DebuffRemains(S.ImprovedScorchDebuff) < S.Pyroblast:CastTime() + 5 * GCDMax and Player:BuffUp(S.FuryoftheSunKingBuff) and not Player:IsCasting(S.Scorch)) then
if Cast(S.Scorch, nil, nil, not Target:IsSpellInRange(S.Scorch)) then return "scorch standard_rotation 13"; end
end
-- pyroblast,if=buff.fury_of_the_sun_king.up&buff.fury_of_the_sun_king.expiration_delay_remains=0
Expand Down

0 comments on commit f7fb170

Please sign in to comment.