Skip to content

Commit

Permalink
Core: Fixed duplicate attempts for boss drops with kill statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
rdw-software committed Aug 24, 2023
1 parent 8364685 commit e9c984a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Core/EventHandlers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,9 @@ function R:OnCombat()
-- Increment attempts 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
for k, v in pairs(Rarity.npcs_to_items[npcid]) do
if v.enabled ~= false and v.method == CONSTANTS.DETECTION_METHODS.BOSS then
local isBossDrop = (v.method == CONSTANTS.DETECTION_METHODS.BOSS)
local hasKillStatistics = type(v.statisticId) ~= "nil"
if v.enabled ~= false and isBossDrop and not hasKillStatistics then
if self:IsAttemptAllowed(v) then
Rarity.guids[dstGuid] = true
if v.attempts == nil then
Expand Down

0 comments on commit e9c984a

Please sign in to comment.