Skip to content

Commit

Permalink
Fix a bug where looting would stop if an ignored item is encountered
Browse files Browse the repository at this point in the history
AeroScripts committed Dec 5, 2020
1 parent ba97959 commit 0f5ca4d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions loot.lua
Original file line number Diff line number Diff line change
@@ -362,6 +362,13 @@ events:SetScript("OnEvent", function()
local lootStep = 1
local validPreviouslyHack = {}

local function incrementLootStep()
lootStep = lootStep + 1
if lootStep > GetNumLootItems() then
lootStep = 1
end
end

local function doLootStep()
local index = GetNumLootItems()
local playerIndex = {}
@@ -384,13 +391,11 @@ events:SetScript("OnEvent", function()
lootTicker = nil
end
GogoLoot:showLootFrame("has normal loot")
incrementLootStep()
return true
end

lootStep = lootStep + 1
if lootStep > GetNumLootItems() then
lootStep = 1
end
incrementLootStep()
end
if lootTicker then
lootTicker:Cancel()

0 comments on commit 0f5ca4d

Please sign in to comment.