1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-12 17:00:08 -09:00

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.
This commit is contained in:
Justin Herlehy 2016-12-30 01:56:04 -05:00
parent a7ead46439
commit 14507e7dc5

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 == null) {
if (attachedToPlayer.hasLost() || attachedToPlayer == null) {
if (movePermanentToGraveyardWithInfo(perm)) {
somethingHappened = true;
}