azerothcore / mod-aoe-loot

Loot all bodies at once!
GNU Affero General Public License v3.0
28 stars 31 forks source link

Bug: Unique items sent by mail #15

Closed pangolp closed 1 year ago

pangolp commented 1 year ago

Current Behaviour

Currently, there is a bug that if a player eliminates many npc that have an item that starts a quest, or have an item that is unique, the same item is obtained the first time, and then the rest of the items are sent by mail.

Expected Behaviour

We should check that if the player has already obtained that item, the rest of the items are not added or sent by mail.

Steps to reproduce the problem

  1. Doing quests, where the npc, can give an item that starts a quest or a unique item, you found that the first one is added to the backpack, and the rest are sent by mail. If it's not unique, you won't notice the difference.

Extra Notes

None

AC rev. hash/commit

https://github.com/azerothcore/azerothcore-wotlk/commit/a3193a03d716460a1590cb48fc234f3ace6b1df0

Operating system

Debian 11, Windows 10

Custom changes or Modules

None