diff options
| author | Ovahlord <dreadkiller@gmx.de> | 2024-08-04 19:43:23 +0200 |
|---|---|---|
| committer | Ovahlord <dreadkiller@gmx.de> | 2024-08-04 19:43:23 +0200 |
| commit | ec0c06201ef2ea78185fcc16e741dbd2367297bb (patch) | |
| tree | f7fdac6d13d860cd7a84fd91d97b933eaaa2e6bb /src/server/game/Handlers/LootHandler.cpp | |
| parent | 1010beb8b0f536f11285cc5687e5a82d2868b6b2 (diff) | |
Core/Quests: kill QUEST_OBJECTIVE_FLAG_2_QUEST_BOUND_ITEM implementation and restore regular quest item loot behavior
closes #30145
Diffstat (limited to 'src/server/game/Handlers/LootHandler.cpp')
| -rw-r--r-- | src/server/game/Handlers/LootHandler.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/server/game/Handlers/LootHandler.cpp b/src/server/game/Handlers/LootHandler.cpp index 1ce22cf173d..a810b5a0b33 100644 --- a/src/server/game/Handlers/LootHandler.cpp +++ b/src/server/game/Handlers/LootHandler.cpp @@ -464,10 +464,8 @@ void WorldSession::HandleLootMasterGiveOpcode(WorldPackets::Loot::MasterLootItem } // now move item from loot to target inventory - if (Item* newitem = target->StoreNewItem(dest, item.itemid, true, item.randomBonusListId, item.GetAllowedLooters(), item.context, &item.BonusListIDs)) - aeResult.Add(newitem, item.count, loot->loot_type, loot->GetDungeonEncounterId()); - else - target->ApplyItemLootedSpell(sObjectMgr->GetItemTemplate(item.itemid)); + Item* newitem = target->StoreNewItem(dest, item.itemid, true, item.randomBonusListId, item.GetAllowedLooters(), item.context, &item.BonusListIDs); + aeResult.Add(newitem, item.count, loot->loot_type, loot->GetDungeonEncounterId()); // mark as looted item.count = 0; |
