diff options
| author | Ovahlord <dreadkiller@gmx.de> | 2023-11-17 12:00:25 +0100 |
|---|---|---|
| committer | Ovahlord <dreadkiller@gmx.de> | 2023-11-17 12:00:25 +0100 |
| commit | 76b538fa59c29b83698caf22a4683b91c4385692 (patch) | |
| tree | e9c37a069a8379ecbc27dc5ba8d9d3c2135575e4 /src | |
| parent | 7131bb4ad17b0e61b3ea1a9b44ea68339105f51b (diff) | |
Core/Players: explicitely disable using the reagent bag slot
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/Entities/Player/Player.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index 17c4ad7c363..75a709c6824 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -9730,6 +9730,10 @@ InventoryResult Player::CanStoreItem_InSpecificSlot(uint8 bag, uint8 slot, ItemP // empty specific slot - check item fit to slot if (!pItem2 || swap) { + // Reagent bags are not supported in Classic + if (slot == REAGENT_BAG_SLOT_START) + return EQUIP_ERR_WRONG_BAG_TYPE; + if (bag == INVENTORY_SLOT_BAG_0) { // keyring case @@ -9871,6 +9875,10 @@ InventoryResult Player::CanStoreItem_InInventorySlots(uint8 slot_begin, uint8 sl if (INVENTORY_SLOT_BAG_0 == skip_bag && j == skip_slot) continue; + // Reagent bags are not supported in Classic + if (j == REAGENT_BAG_SLOT_START) + continue; + Item* pItem2 = GetItemByPos(INVENTORY_SLOT_BAG_0, j); // ignore move item (this slot will be empty at move) |
