From 14507e7dc58e4d9f92b704ea043c69109dcbd416 Mon Sep 17 00:00:00 2001 From: Justin Herlehy Date: Fri, 30 Dec 2016 01:56:04 -0500 Subject: [PATCH] Fix GameImpl SBA for auras attached to players. attachedToPlayer was always getting set to something so the null check in the SBA loop was not allowing auras to be put into the graveyard for being attached to an illegal player. Currently checks for hasLost() as the player leaving also sets loses to true. --- Mage/src/main/java/mage/game/GameImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage/src/main/java/mage/game/GameImpl.java b/Mage/src/main/java/mage/game/GameImpl.java index 56ce273b395..8c742e68628 100644 --- a/Mage/src/main/java/mage/game/GameImpl.java +++ b/Mage/src/main/java/mage/game/GameImpl.java @@ -1838,7 +1838,7 @@ public abstract class GameImpl implements Game, Serializable { } } else if (target instanceof TargetPlayer) { Player attachedToPlayer = getPlayer(perm.getAttachedTo()); - if (attachedToPlayer == null) { + if (attachedToPlayer.hasLost() || attachedToPlayer == null) { if (movePermanentToGraveyardWithInfo(perm)) { somethingHappened = true; }