Skip to content

Commit

Permalink
Core: Fixed multiple attempts being added from Pick Pocket
Browse files Browse the repository at this point in the history
Resolves #722.
  • Loading branch information
rdw-software committed Jun 8, 2024
1 parent a6d4251 commit 582cd6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 1 addition & 4 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -798,10 +798,7 @@ function R:CheckNpcInterest(guid, zone, subzone, zone_t, subzone_t, curSpell, re
return
end

if not requiresPickpocket then
-- Pick Pocket triggers the same loot events, but it shouldn't prevent kills from counting afterwards
Rarity.guids[guid] = true
end
Rarity.guids[guid] = true

-- Increment attempt counter(s). One NPC might drop multiple things we want, so scan for them all.
if Rarity.npcs_to_items[npcid] and type(Rarity.npcs_to_items[npcid]) == "table" then
Expand Down
5 changes: 5 additions & 0 deletions Core/EventHandlers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2075,6 +2075,11 @@ function R:OnLootReady(event, ...)
end
end
end

if requiresPickpocket then
-- Pick Pocket triggers the same loot events, but it shouldn't prevent kills from counting afterwards
Rarity.guids[guid] = false
end
end
end

Expand Down

0 comments on commit 582cd6b

Please sign in to comment.