From cfc0f6a3ac399c545de7ec14aaf2e3d15eb5344c Mon Sep 17 00:00:00 2001 From: Kirsty Date: Mon, 8 Oct 2018 20:38:16 +0100 Subject: [PATCH] remove items with that have been lost from Class:None (#10735) --- website/common/script/libs/shops.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/website/common/script/libs/shops.js b/website/common/script/libs/shops.js index dc21fe20ae..f781512e3b 100644 --- a/website/common/script/libs/shops.js +++ b/website/common/script/libs/shops.js @@ -188,8 +188,7 @@ shops.getMarketGearCategories = function getMarketGear (user, language) { }; let specialNonClassGear = filter(content.gear.flat, (gear) => { - return user.items.gear.owned[gear.key] === false || - !user.items.gear.owned[gear.key] && + return !user.items.gear.owned[gear.key] && content.classes.indexOf(gear.klass) === -1 && content.classes.indexOf(gear.specialClass) === -1 && (gear.canOwn && gear.canOwn(user));