From 8640dcb889af70681da1169e371a6f640adeccb2 Mon Sep 17 00:00:00 2001 From: Shaun Date: Sat, 21 Oct 2023 08:24:51 +0200 Subject: [PATCH] bug #2002 --- src/server/components/trade.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/components/trade.js b/src/server/components/trade.js index 4697e747..a1dc5efe 100644 --- a/src/server/components/trade.js +++ b/src/server/components/trade.js @@ -266,7 +266,7 @@ module.exports = { let targetTrade = target.trade; const item = this.obj.inventory.findItem(msg.itemId); - if (!item) + if (!item || item.worth <= 0 || item.eq || item.noDestroy) return; const oldQuantity = item.quantity; @@ -312,7 +312,7 @@ module.exports = { this.target = target; let itemList = this.obj.inventory.items - .filter(i => ((i.worth > 0) && (!i.eq))); + .filter(i => i.worth > 0 && !i.eq && !i.noDestroy); itemList = extend([], itemList); this.obj.syncer.set(true, 'trade', 'sellList', {