forked from External/mage
Little fixes
This commit is contained in:
parent
b011ddf942
commit
ab1475d7e0
4 changed files with 10 additions and 11 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue