aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Groups/Group.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2022-09-11 18:21:01 +0200
committerShauren <shauren.trinity@gmail.com>2022-09-11 18:21:01 +0200
commite9d083a2ee59d297271b04f3b7fb63808f7f0c8c (patch)
treed32b537dcc05ff251d326f2f9424d4defe205fba /src/server/game/Groups/Group.cpp
parent78698463ff6b20255148fb647e9ad33a487bb09d (diff)
Core/Loot: Set loot guid and type in Loot constructor
Diffstat (limited to 'src/server/game/Groups/Group.cpp')
-rw-r--r--src/server/game/Groups/Group.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/game/Groups/Group.cpp b/src/server/game/Groups/Group.cpp
index e371053dfac..42f5d3f837e 100644
--- a/src/server/game/Groups/Group.cpp
+++ b/src/server/game/Groups/Group.cpp
@@ -1352,7 +1352,7 @@ void Group::CountTheRoll(Rolls::iterator rollI, Map* allowedMap)
if (msg == EQUIP_ERR_OK)
{
item->is_looted = true;
- roll->getLoot()->NotifyItemRemoved(roll->itemSlot);
+ roll->getLoot()->NotifyItemRemoved(roll->itemSlot, allowedMap);
roll->getLoot()->unlootedCount--;
player->StoreNewItem(dest, roll->itemid, true, item->randomBonusListId, item->GetAllowedLooters(), item->context, item->BonusListIDs);
}
@@ -1419,7 +1419,7 @@ void Group::CountTheRoll(Rolls::iterator rollI, Map* allowedMap)
if (msg == EQUIP_ERR_OK)
{
item->is_looted = true;
- roll->getLoot()->NotifyItemRemoved(roll->itemSlot);
+ roll->getLoot()->NotifyItemRemoved(roll->itemSlot, allowedMap);
roll->getLoot()->unlootedCount--;
player->StoreNewItem(dest, roll->itemid, true, item->randomBonusListId, item->GetAllowedLooters(), item->context, item->BonusListIDs);
}
@@ -1433,7 +1433,7 @@ void Group::CountTheRoll(Rolls::iterator rollI, Map* allowedMap)
else if (rollvote == DISENCHANT)
{
item->is_looted = true;
- roll->getLoot()->NotifyItemRemoved(roll->itemSlot);
+ roll->getLoot()->NotifyItemRemoved(roll->itemSlot, allowedMap);
roll->getLoot()->unlootedCount--;
player->UpdateCriteria(CriteriaType::CastSpell, 13262); // Disenchant
@@ -1445,7 +1445,7 @@ void Group::CountTheRoll(Rolls::iterator rollI, Map* allowedMap)
player->AutoStoreLoot(disenchant->ID, LootTemplates_Disenchant, ItemContext::NONE, true);
else // If the player's inventory is full, send the disenchant result in a mail.
{
- Loot loot;
+ Loot loot(allowedMap, roll->getLoot()->GetOwnerGUID(), LOOT_DISENCHANTING);
loot.FillLoot(disenchant->ID, LootTemplates_Disenchant, player, true);
uint32 max_slot = loot.GetMaxSlotInLootFor(player);