added assert

master
melvin 2011-06-28 15:06:14 +08:00
parent a5346dd068
commit d7107533b3
1 changed files with 4 additions and 2 deletions

View File

@ -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();
} }
} }