forked from External/mage
Bugfixes with != instead of equals and default toString calls
This commit is contained in:
parent
752392fc46
commit
a15220d51e
74 changed files with 187 additions and 147 deletions
|
|
@ -28,6 +28,8 @@
|
|||
package mage;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Objects;
|
||||
|
||||
import mage.util.Copyable;
|
||||
|
||||
public class MageInt implements Serializable, Copyable<MageInt> {
|
||||
|
|
@ -75,7 +77,7 @@ public class MageInt implements Serializable, Copyable<MageInt> {
|
|||
|
||||
@Override
|
||||
public MageInt copy() {
|
||||
if (this == EmptyMageInt) {
|
||||
if (Objects.equals(this, EmptyMageInt)) {
|
||||
return this;
|
||||
}
|
||||
return new MageInt(baseValue, baseValueModified, boostedValue, cardValue);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue