From 1ad852ddd8327309bfda34bab4b1197efd8ef398 Mon Sep 17 00:00:00 2001 From: Severyn Date: Tue, 19 Nov 2024 13:12:09 +0200 Subject: [PATCH] fix enemy types filter --- src/v2/features/goals/upgrades.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v2/features/goals/upgrades.service.ts b/src/v2/features/goals/upgrades.service.ts index 7fa7ff60..a98ee225 100644 --- a/src/v2/features/goals/upgrades.service.ts +++ b/src/v2/features/goals/upgrades.service.ts @@ -544,7 +544,7 @@ export class UpgradesService { } if (enemiesTypes?.length) { - if (location.enemiesTypes.some(enemyType => enemiesTypes.includes(enemyType))) { + if (!location.enemiesTypes.some(enemyType => enemiesTypes.includes(enemyType))) { return false; } }