#3373: fixed exiling copied spells from stack

This commit is contained in:
magenoxx 2017-05-16 20:18:32 +03:00
parent 83ee1252cd
commit b3eb89c6ea

View file

@ -3411,9 +3411,16 @@ public abstract class PlayerImpl implements Player, Serializable {
if (basicCard != null) { if (basicCard != null) {
card = basicCard; card = basicCard;
} }
} else if (card instanceof Spell) {
final Spell spell = (Spell) card;
if (spell.isCopiedSpell()) {
// Copied spell, only remove from stack
game.getStack().remove(spell);
}
} }
game.informPlayers(this.getLogName() + " moves " + (withName ? card.getLogName() + (card.isCopy() ? " (Copy)" : "") : "a card face down") + ' ' game.informPlayers(this.getLogName() + " moves " + (withName ? card.getLogName() + (card.isCopy() ? " (Copy)" : "") : "a card face down") + ' '
+ (fromZone != null ? "from " + fromZone.toString().toLowerCase(Locale.ENGLISH) + ' ' : "") + "to the exile zone"); + (fromZone != null ? "from " + fromZone.toString().toLowerCase(Locale.ENGLISH) + ' ' : "") + "to the exile zone");
} }
result = true; result = true;
} }