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:
parent
a7ead46439
commit
14507e7dc5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue