diff options
author | xinef1 <w.szyszko2@gmail.com> | 2017-02-04 14:58:50 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2017-02-04 14:58:50 +0100 |
commit | ab6ac42bf032b723167c37caed875c76a1295ec6 (patch) | |
tree | f0e8b93195cbf239d7486534b180c6eaf69c6964 /src/server/game/Groups/Group.cpp | |
parent | ce774918a7959b7780d6af9e095b3b5fcdbccfe2 (diff) |
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)
Diffstat (limited to 'src/server/game/Groups/Group.cpp')
-rw-r--r-- | src/server/game/Groups/Group.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/server/game/Groups/Group.cpp b/src/server/game/Groups/Group.cpp index d5d32f3a494..11d29ba8b62 100644 --- a/src/server/game/Groups/Group.cpp +++ b/src/server/game/Groups/Group.cpp @@ -1412,7 +1412,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); } } } @@ -1464,7 +1465,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) @@ -1488,7 +1490,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); } } |