mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +00:00
#3373: fixed exiling copied spells from stack
This commit is contained in:
parent
83ee1252cd
commit
b3eb89c6ea
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue