Integer.max can't be used use Math.max

This commit is contained in:
Hans Mackowiak
2018-05-23 20:17:07 +00:00
parent f3006fd8e2
commit 5a68bc4b79

View File

@@ -5706,7 +5706,7 @@ public class Card extends GameEntity implements Comparable<Card> {
for (final Trigger t : getTriggers()) {
SpellAbility sa = t.getOverridingAbility();
if (sa != null && sa.isChapter()) {
n = Integer.max(n, sa.getChapter());
n = Math.max(n, sa.getChapter());
}
}
return n;