diff options
| author | Shauren <shauren.trinity@gmail.com> | 2023-12-30 15:45:37 +0100 |
|---|---|---|
| committer | funjoker <funjoker109@gmail.com> | 2024-01-09 12:50:47 +0100 |
| commit | 0c21c06e6e1857254757bd2669f2fcb26a0b6c59 (patch) | |
| tree | ecce6bc11d5653be74704a2b871e9af9d400f2ed /src/server/scripts/Commands | |
| parent | dbf2f88e40c3e760b4508f0dafaedd065ba95479 (diff) | |
Core/Quests: Implemented QUEST_OBJECTIVE_FLAG_2_QUEST_BOUND_ITEM that makes required items not be stored in inventory
(cherry picked from commit 4dce6ab228c54319032b346d2d791262eac3d9cd)
Diffstat (limited to 'src/server/scripts/Commands')
| -rw-r--r-- | src/server/scripts/Commands/cs_misc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/scripts/Commands/cs_misc.cpp b/src/server/scripts/Commands/cs_misc.cpp index a56d95eb7ff..4f9c5747378 100644 --- a/src/server/scripts/Commands/cs_misc.cpp +++ b/src/server/scripts/Commands/cs_misc.cpp @@ -1498,6 +1498,8 @@ public: if (msg == EQUIP_ERR_OK) { Item* item = playerTarget->StoreNewItem(dest, itemTemplatePair.first, true, sItemEnchantmentMgr->GenerateRandomProperties(itemTemplatePair.first), GuidSet(), itemContext); + if (!item) + continue; // remove binding (let GM give it to another player later) if (player == playerTarget) |
