Little fixes

This commit is contained in:
Oleg Agafonov 2020-01-09 08:52:25 +04:00
parent b011ddf942
commit ab1475d7e0
4 changed files with 10 additions and 11 deletions

View file

@ -1,11 +1,11 @@
package mage;
import mage.util.CardUtil;
import mage.util.Copyable;
import java.io.Serializable;
import java.util.Objects;
import mage.util.Copyable;
public class MageInt implements Serializable, Copyable<MageInt> {
public static final MageInt EmptyMageInt = new MageInt(Integer.MIN_VALUE, "") {
@ -80,7 +80,7 @@ public class MageInt implements Serializable, Copyable<MageInt> {
}
public void boostValue(int amount) {
this.boostedValue += amount;
this.boostedValue = CardUtil.addWithOverflowCheck(this.boostedValue, amount);
}
public void resetToBaseValue() {