From b3e22257c7edcd7e90449ed3f63f306cb2774cc0 Mon Sep 17 00:00:00 2001 From: Karrz1 <127596890+Karrz1@users.noreply.github.com> Date: Sun, 15 Nov 2026 23:05:48 +0000 Subject: [PATCH] Core: the master looter gets the give-to list even when a bot opened the loot first --- src/server/game/Loot/Loot.cpp | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/server/game/Loot/Loot.cpp b/src/server/game/Loot/Loot.cpp index 99dd1de304..440e620510 100644 --- a/src/server/game/Loot/Loot.cpp +++ b/src/server/game/Loot/Loot.cpp @@ -883,16 +883,17 @@ void Loot::OnLootOpened(Map* map, Player* looter) if (!_rolls.empty()) _changed = true; } - else if (_lootMethod == MASTER_LOOT) - { - if (looter->GetGUID() == _lootMaster) - { - WorldPackets::Loot::MasterLootCandidateList masterLootCandidateList; - masterLootCandidateList.LootObj = GetGUID(); - masterLootCandidateList.Players = _allowedLooters; - looter->SendDirectMessage(masterLootCandidateList.Write()); - } - } + } + + // The master looter gets the candidate list every time it opens the loot, not only when it is the first to open it: a party bot + // that opened the corpse first (its loot window opens and closes) left the master looter with an empty "give to" list + // (Discord 11-14, doctorsun: "sometimes the character list does not appear"). + if (_lootMethod == MASTER_LOOT && looter->GetGUID() == _lootMaster) + { + WorldPackets::Loot::MasterLootCandidateList masterLootCandidateList; + masterLootCandidateList.LootObj = GetGUID(); + masterLootCandidateList.Players = _allowedLooters; + looter->SendDirectMessage(masterLootCandidateList.Write()); } // Flag tracking quests as completed after all items were scanned for this player (some might depend on this quest not being completed)