Merge pull request #464 from MockingbirdME/patch-10
Fix: highestStrength always being 2147483647
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user