forked from External/mage
added SOM - Chimeric Mass
This commit is contained in:
parent
924908c873
commit
7e05790a07
3 changed files with 154 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ import mage.util.Copyable;
|
|||
|
||||
public class MageInt implements Serializable, Copyable<MageInt> {
|
||||
|
||||
public static MageInt EmptyMageInt = new MageInt(0, "");
|
||||
public static MageInt EmptyMageInt = new MageInt(Integer.MIN_VALUE, null);
|
||||
|
||||
protected int baseValue;
|
||||
protected String cardValue = "";
|
||||
|
|
@ -50,6 +50,8 @@ public class MageInt implements Serializable, Copyable<MageInt> {
|
|||
|
||||
@Override
|
||||
public MageInt copy() {
|
||||
if (this == EmptyMageInt)
|
||||
return this;
|
||||
return new MageInt(baseValue, cardValue);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue