From 93ef10aed9cc7f48a883d22c0386c99d1cdda5dd Mon Sep 17 00:00:00 2001 From: idinium96 Date: Thu, 23 Jul 2020 16:32:10 +0800 Subject: [PATCH] only craft weapons if not exist in pricelist --- src/classes/MyHandler.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/classes/MyHandler.ts b/src/classes/MyHandler.ts index e36605f89..4e0060c13 100644 --- a/src/classes/MyHandler.ts +++ b/src/classes/MyHandler.ts @@ -2087,7 +2087,8 @@ Autokeys status:- this.craftweaponOnlyCraftable().forEach(sku => { const weapon = currencies[sku].length; - if (weapon >= 2) { + if (weapon >= 2 && this.bot.pricelist.getPrice(sku, true) !== null) { + // Only craft if duplicated and not exist in pricelist const combineWeapon = Math.ceil(weapon / 2); for (let i = 0; i < combineWeapon; i++) { this.bot.tf2gc.combineWeapon(sku);