Fix: highestStrength always being 2147483647

This commit is contained in:
Devon Henegar
2025-01-31 15:43:49 -05:00
committed by GitHub
parent 0f7f2ed3aa
commit bc3851541b

View File

@@ -374,7 +374,7 @@ public class FilterFactory {
new Evaluator() {
@Override
public int evaluateExpression(LotroGame game, PhysicalCard cardAffected) {
int maxStrength = Integer.MAX_VALUE;
int maxStrength = Integer.MIN_VALUE;
for (PhysicalCard card : Filters.filterActive(game, sourceFilterable))
maxStrength = Math.max(maxStrength, game.getModifiersQuerying().getStrength(game, card));
return maxStrength;