diff options
author | Shauren <shauren.trinity@gmail.com> | 2021-01-24 21:40:02 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-10-04 00:19:38 +0200 |
commit | 5a516fb6549e460e68b45005a17ec1b6217fefa5 (patch) | |
tree | ba79668b9b4716eedb7627bb86e7d48642e3a567 /src/server/game/Handlers/LootHandler.cpp | |
parent | 46e0056196dd6e56077aeeb67d41ec520046a79e (diff) |
Core/Loot: Send DungeonEncounter id in SMSG_ITEM_PUSH_RESULT
Diffstat (limited to 'src/server/game/Handlers/LootHandler.cpp')
-rw-r--r-- | src/server/game/Handlers/LootHandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Handlers/LootHandler.cpp b/src/server/game/Handlers/LootHandler.cpp index 28442b1abf8..eb27319992e 100644 --- a/src/server/game/Handlers/LootHandler.cpp +++ b/src/server/game/Handlers/LootHandler.cpp @@ -128,7 +128,7 @@ void WorldSession::HandleAutostoreLootItemOpcode(WorldPackets::Loot::LootItem& p { for (AELootResult::ResultValue const& resultValue : aeResult) { - player->SendNewItem(resultValue.item, resultValue.count, false, false, true); + player->SendNewItem(resultValue.item, resultValue.count, false, false, true, resultValue.dungeonEncounterId); player->UpdateCriteria(CriteriaType::LootItem, resultValue.item->GetEntry(), resultValue.count); player->UpdateCriteria(CriteriaType::GetLootByType, resultValue.item->GetEntry(), resultValue.count, resultValue.lootType); player->UpdateCriteria(CriteriaType::LootAnyItem, resultValue.item->GetEntry(), resultValue.count); @@ -440,7 +440,7 @@ void WorldSession::HandleLootMasterGiveOpcode(WorldPackets::Loot::MasterLootItem // now move item from loot to target inventory Item* newitem = target->StoreNewItem(dest, item.itemid, true, item.randomBonusListId, item.GetAllowedLooters(), item.context, item.BonusListIDs); - aeResult.Add(newitem, item.count, loot->loot_type); + aeResult.Add(newitem, item.count, loot->loot_type, loot->GetDungeonEncounterId()); // mark as looted item.count = 0; |