Skip to content

Commit

Permalink
Improve workaround for duplicate group loot item message server bug
Browse files Browse the repository at this point in the history
Allows workaround for simultaneous multiple same item drop messages.
  • Loading branch information
fondlez committed Nov 16, 2024
1 parent 4530161 commit 8b52a14
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion FonzAppraiser.toc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Title: FonzAppraiser
## Notes: Tracks the value of personal loot. Command: /fa.
## Author: fondlez
## Version: 3.1.1
## Version: 3.1.2
## OptionalDeps: aux-addon, Auctioneer, Auc-Advanced, Auctionator, TradeSkillMaster
## X-Website: http://github.com/fondlez
## X-Category: Inventory
Expand Down
5 changes: 4 additions & 1 deletion changelog.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
local A = FonzAppraiser

A.HELP_VERSION = [[Version 3.1.1 - 2024-11-16 |cffffffff
A.HELP_VERSION = [[Version 3.1.2 - 2024-11-16 |cffffffff
[*] Improved workaround for duplicate group loot item message server bug.
|rVersion 3.1.1 - 2024-11-16 |cffffffff
[*] Updated the detection method for money from personal loot.
[*] Workaround for bug on some servers where group loot messages duplicate items.
Expand Down
8 changes: 7 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,19 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.1.2] - 2024-11-16

### Fixed

- Improved workaround for duplicate group loot item message server bug.

## [3.1.1] - 2024-11-16

### Changed

- Updated the detection method for money from personal loot.

## Fixed
### Fixed

- Workaround for bug on some servers where group loot messages duplicate items.

Expand Down
2 changes: 0 additions & 2 deletions core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,12 @@ do
last_self_code = code
if last_won_code and code == last_won_code
and seenTooSoon(last_loot_time) then
last_loot_time = nil -- Found the Self duplicate message, so reset
return
end
elseif loot_type == LOOT_TYPE_WON then
last_won_code = code
if last_self_code and code == last_self_code
and seenTooSoon(last_loot_time) then
last_loot_time = nil -- Found the Won duplicate message, so reset
return
end
end
Expand Down

0 comments on commit 8b52a14

Please sign in to comment.