[MMQ] Ramosian Rally

Also fixed order of check in GameImpl for attached player to prevent possible NPE.
This commit is contained in:
Justin Herlehy 2016-12-31 14:41:38 -05:00
parent df0cd60fbc
commit f3c0d3fce0
3 changed files with 81 additions and 1 deletions

View file

@ -1838,7 +1838,7 @@ public abstract class GameImpl implements Game, Serializable {
}
} else if (target instanceof TargetPlayer) {
Player attachedToPlayer = getPlayer(perm.getAttachedTo());
if (attachedToPlayer.hasLost() || attachedToPlayer == null) {
if (attachedToPlayer == null || attachedToPlayer.hasLost()) {
if (movePermanentToGraveyardWithInfo(perm)) {
somethingHappened = true;
}