Skip to content

Commit

Permalink
Fix empty rolls not ending automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonomit committed Jun 23, 2024
1 parent a12a1c2 commit 22b4eeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2685,7 +2685,7 @@ function LootReserve.Server:ExpireRollRequest()
if self.Settings.RollAdvanceOnExpire and not self.RequestedRoll.Tiered then
if not self:AdvanceRollPhase(self.RequestedRoll.Item) then
-- If the phase cannot advance (i.e. because we ran out of phases) - end the roll
if self.Settings.RollFinishOnExpire and #winners == 1 then
if self.Settings.RollFinishOnExpire then
self:FinishRollRequest(self.RequestedRoll.Item);
if disenchanter then
self:RecordDisenchant(item, disenchanter);
Expand All @@ -2694,7 +2694,7 @@ function LootReserve.Server:ExpireRollRequest()
end
elseif not self.RequestedRoll.Phases or #self.RequestedRoll.Phases <= 1 or self.RequestedRoll.Tiered then
-- If no more phases remaining - end the roll
if self.Settings.RollFinishOnExpire and #winners == 1 then
if self.Settings.RollFinishOnExpire then
self:FinishRollRequest(self.RequestedRoll.Item);
if disenchanter then
self:RecordDisenchant(item, disenchanter);
Expand Down

0 comments on commit 22b4eeb

Please sign in to comment.