From 8725eec9c1c15f3e76bd9d524d4a5d8d0b3f0a44 Mon Sep 17 00:00:00 2001 From: xinef1 Date: Sat, 4 Feb 2017 14:58:50 +0100 Subject: Core/Loot: Only allow the roll winner to loot the item he won in case it cannot be added to inventory instantly (full or any other reason) (#19037) (cherry-picked from ab6ac42bf032b723167c37caed875c76a1295ec6) --- src/server/game/Groups/Group.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/server/game/Groups/Group.cpp') diff --git a/src/server/game/Groups/Group.cpp b/src/server/game/Groups/Group.cpp index 184bd97e17d..7321244578c 100644 --- a/src/server/game/Groups/Group.cpp +++ b/src/server/game/Groups/Group.cpp @@ -1283,7 +1283,8 @@ void Group::CountTheRoll(Rolls::iterator rollI) else { item->is_blocked = false; - player->SendEquipError(msg, NULL, NULL, roll->itemid); + item->rollWinnerGUID = player->GetGUID(); + player->SendEquipError(msg, nullptr, nullptr, roll->itemid); } } } @@ -1335,7 +1336,8 @@ void Group::CountTheRoll(Rolls::iterator rollI) else { item->is_blocked = false; - player->SendEquipError(msg, NULL, NULL, roll->itemid); + item->rollWinnerGUID = player->GetGUID(); + player->SendEquipError(msg, nullptr, nullptr, roll->itemid); } } else if (rollvote == DISENCHANT) @@ -1360,7 +1362,7 @@ void Group::CountTheRoll(Rolls::iterator rollI) for (uint32 i = 0; i < max_slot; ++i) { LootItem* lootItem = loot.LootItemInSlot(i, player); - player->SendEquipError(msg, NULL, NULL, lootItem->itemid); + player->SendEquipError(msg, nullptr, nullptr, lootItem->itemid); player->SendItemRetrievalMail(lootItem->itemid, lootItem->count); } } -- cgit v1.2.3