Skip to content

Commit

Permalink
More MfD iteration.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hekili committed Jul 13, 2021
1 parent a02fba9 commit d8b8c9f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Classes/RogueAssassination.lua
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ if UnitClassBase( 'player' ) == 'ROGUE' then
spec:RegisterCycle( function ()
if active_enemies == 1 then return end
if this_action == "marked_for_death" then
if active_dot.marked_for_death >= cycle_enemies then return end -- As far as we can tell, MfD is on everything we care about, so we don't cycle.
if debuff.marked_for_death.up then return "cycle" end -- If current target already has MfD, cycle.
if target.time_to_die > 3 + Hekili:GetLowestTTD() and active_dot.marked_for_death == 0 then return "cycle" end -- If our target isn't lowest TTD, and we don't have to worry that the lowest TTD target is already MfD'd, cycle.
end
Expand Down
2 changes: 1 addition & 1 deletion Classes/RogueOutlaw.lua
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,8 @@ if UnitClassBase( "player" ) == "ROGUE" then
end )

spec:RegisterCycle( function ()
if active_enemies == 1 then return end
if this_action == "marked_for_death" then
if active_dot.marked_for_death >= cycle_enemies then return end -- As far as we can tell, MfD is on everything we care about, so we don't cycle.
if debuff.marked_for_death.up then return "cycle" end -- If current target already has MfD, cycle.
if target.time_to_die > 3 + Hekili:GetLowestTTD() and active_dot.marked_for_death == 0 then return "cycle" end -- If our target isn't lowest TTD, and we don't have to worry that the lowest TTD target is already MfD'd, cycle.
end
Expand Down
1 change: 1 addition & 0 deletions Classes/RogueSubtlety.lua
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,7 @@ if UnitClassBase( "player" ) == "ROGUE" then
spec:RegisterCycle( function ()
if active_enemies == 1 then return end
if this_action == "marked_for_death" then
if active_dot.marked_for_death >= cycle_enemies then return end -- As far as we can tell, MfD is on everything we care about, so we don't cycle.
if debuff.marked_for_death.up then return "cycle" end -- If current target already has MfD, cycle.
if target.time_to_die > 3 + Hekili:GetLowestTTD() and active_dot.marked_for_death == 0 then return "cycle" end -- If our target isn't lowest TTD, and we don't have to worry that the lowest TTD target is already MfD'd, cycle.
end
Expand Down

0 comments on commit d8b8c9f

Please sign in to comment.