From 5d024f4da9773214baa1a5774e65423b556b8cdf Mon Sep 17 00:00:00 2001 From: vhaudiquet Date: Tue, 14 Jan 2025 00:59:12 +0100 Subject: [PATCH] Hotfix for boots :) --- match_collector/champion_stat.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/match_collector/champion_stat.ts b/match_collector/champion_stat.ts index 7d9410d..be0803b 100644 --- a/match_collector/champion_stat.ts +++ b/match_collector/champion_stat.ts @@ -119,9 +119,16 @@ function handleMatchItems(timeline, participant: any, participantIndex : number, } if(event.type != "ITEM_PURCHASED") continue; + // Handle boots upgrades + if(itemInfo.requiredBuffCurrencyName == "Feats_NoxianBootPurchaseBuff" + || itemInfo.requiredBuffCurrencyName == "Feats_SpecialQuestBootBuff") { + itemInfo.categories.push("Boots"); + event.itemId = itemInfo.from[0] + } + // Handle boots differently if(itemInfo.categories.includes("Boots")){ - if(itemInfo.to.length == 0 || event.itemId == 3006) { + if(itemInfo.to.length == 0 || (itemInfo.to[0] >= 3171 && itemInfo.to[0] <= 3176)) { // Check for bootsFirst if(items.length < 2) { builds.bootsFirst += 1