Merge pull request #464 from MockingbirdME/patch-10

Fix: highestStrength always being 2147483647
This commit is contained in:
Christian McCarty
2025-02-09 14:03:02 -06:00
committed by GitHub

View File

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