Skip to content

Commit

Permalink
Fix Rune forecasting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hekili committed Sep 8, 2020
1 parent abd4b06 commit 1d6e9ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion State.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@ local function forecastResources( resource )
remains[ e.resource ] = finish - e.next
e.next = e.next + step

if e.next > finish or step <= 0 or ( e.aura and state[ e.debuff and 'debuff' or 'buff' ][ e.aura ].expires < e.next ) then
if e.next > finish or step < 0 or ( e.aura and state[ e.debuff and 'debuff' or 'buff' ][ e.aura ].expires < e.next ) then
table.remove( events, 1 )
end
end
Expand Down

0 comments on commit 1d6e9ab

Please sign in to comment.