added assert
parent
a5346dd068
commit
d7107533b3
|
@ -20,15 +20,17 @@ public class MagicPlayChoiceResult implements MagicMappable {
|
||||||
public Object map(final MagicGame game) {
|
public Object map(final MagicGame game) {
|
||||||
if (this==PASS) {
|
if (this==PASS) {
|
||||||
return PASS;
|
return PASS;
|
||||||
}
|
} else {
|
||||||
return new MagicPlayChoiceResult((MagicSource)source.map(game),activation);
|
return new MagicPlayChoiceResult((MagicSource)source.map(game),activation);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
if (this==PASS) {
|
if (this==PASS) {
|
||||||
return "pass";
|
return "pass";
|
||||||
} else {
|
} else {
|
||||||
|
assert source != null;
|
||||||
return source.getName();
|
return source.getName();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue