From ea69636739098fa9de3c50a50cb9f2465ec7c895 Mon Sep 17 00:00:00 2001 From: Walter Pagani Date: Wed, 21 Feb 2024 02:07:32 -0300 Subject: [PATCH] Fix. Give the player the quest items too (#25) --- src/AoeLoot_SC.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/AoeLoot_SC.cpp b/src/AoeLoot_SC.cpp index a71fa5a..f13aba9 100644 --- a/src/AoeLoot_SC.cpp +++ b/src/AoeLoot_SC.cpp @@ -101,7 +101,11 @@ class AoeLoot_Player : public PlayerScript if (!player->HasItemCount(item.itemid, 1, true)) aoeLoot[item.itemid] = 1; } - player->SendNotifyLootItemRemoved(item.itemIndex); + } + + for (auto const& item : loot->quest_items) + { + aoeLoot[item.itemid] += (uint32)item.count; } player->SendLootRelease(player->GetLootGUID());