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/Loot/Loot.cpp | |
parent | 46e0056196dd6e56077aeeb67d41ec520046a79e (diff) |
Core/Loot: Send DungeonEncounter id in SMSG_ITEM_PUSH_RESULT
Diffstat (limited to 'src/server/game/Loot/Loot.cpp')
-rw-r--r-- | src/server/game/Loot/Loot.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/game/Loot/Loot.cpp b/src/server/game/Loot/Loot.cpp index ff3a77279c4..91eac407aaa 100644 --- a/src/server/game/Loot/Loot.cpp +++ b/src/server/game/Loot/Loot.cpp @@ -613,7 +613,7 @@ void LootRoll::Finish(RollVoteMap::const_iterator winnerItr) Loot::Loot(Map* map, ObjectGuid owner, LootType type, Group const* group) : gold(0), unlootedCount(0), loot_type(type), maxDuplicates(1), _guid(map ? ObjectGuid::Create<HighGuid::LootObject>(map->GetId(), 0, map->GenerateLowGuid<HighGuid::LootObject>()) : ObjectGuid::Empty), _owner(owner), _itemContext(ItemContext::NONE), _lootMethod(group ? group->GetLootMethod() : FREE_FOR_ALL), - _lootMaster(group ? group->GetMasterLooterGuid() : ObjectGuid::Empty), _wasOpened(false) + _lootMaster(group ? group->GetMasterLooterGuid() : ObjectGuid::Empty), _wasOpened(false), _dungeonEncounterId(0) { } @@ -1044,7 +1044,7 @@ void Loot::FillNotNormalLootFor(Player const* player) // --------- AELootResult --------- // -void AELootResult::Add(Item* item, uint8 count, LootType lootType) +void AELootResult::Add(Item* item, uint8 count, LootType lootType, uint32 dungeonEncounterId) { auto itr = _byItem.find(item); if (itr != _byItem.end()) @@ -1056,6 +1056,7 @@ void AELootResult::Add(Item* item, uint8 count, LootType lootType) value.item = item; value.count = count; value.lootType = lootType; + value.dungeonEncounterId = dungeonEncounterId; _byOrder.push_back(value); } } |