Skip to content

Commit

Permalink
Core: Prevented Pick Pocket from blocking regular loot events
Browse files Browse the repository at this point in the history
  • Loading branch information
rdw-software committed Apr 11, 2024
1 parent de597c4 commit 06ff32d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -793,8 +793,10 @@ function R:CheckNpcInterest(guid, zone, subzone, zone_t, subzone_t, curSpell, re
return
end

-- We're interested in this loot, process further
Rarity.guids[guid] = true
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

-- 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

0 comments on commit 06ff32d

Please sign in to comment.