fix: some filtering

This commit is contained in:
TrèsAbhi committed 2025-12-31 14:41:13 -06:00
1 parent 532d677491
commit a8cdc96382
2 files changed
+36 -12

No files matched your search

@@ -70,6 +70,30 @@ export async function filterTank(
)
)
)
)) &&
(filters.abilities.length === 0 ||
filters.abilities.every((ability) =>
tank.turrets.some((turret) =>
turret.guns.some((gun) =>
checkConsumableProvisionInclusivity(
consumableDefinitions.consumables[ability],
tank,
gun
)
)
)
)) &&
(filters.powers.length === 0 ||
filters.powers.every((power) =>
tank.turrets.some((turret) =>
turret.guns.some((gun) =>
checkConsumableProvisionInclusivity(
provisionDefinitions.provisions[power],
tank,
gun
)
)
)
))
);
}