diff options
Diffstat (limited to 'src/server/game/Groups/Group.cpp')
-rw-r--r-- | src/server/game/Groups/Group.cpp | 8 |
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); |