forked from External/mage
fixed while on stack effects of copied spells not discarding when copy has left stack
This commit is contained in:
parent
bd92ced539
commit
7d07c220b0
3 changed files with 57 additions and 4 deletions
|
|
@ -1965,11 +1965,14 @@ public abstract class GameImpl implements Game, Serializable {
|
|||
// (Isochron Scepter) 12/1/2004: If you don't want to cast the copy, you can choose not to; the copy ceases
|
||||
// to exist the next time state-based actions are checked.
|
||||
Zone zone = state.getZone(copiedCard.getMainCard().getId());
|
||||
if (zone == Zone.BATTLEFIELD || zone == Zone.STACK) {
|
||||
continue;
|
||||
}
|
||||
// TODO: remember LKI of copied cards here after LKI rework
|
||||
switch (zone) {
|
||||
case BATTLEFIELD:
|
||||
continue;
|
||||
case STACK:
|
||||
if (getStack().getStackObject(copiedCard.getId()) != null) {
|
||||
continue;
|
||||
}
|
||||
case GRAVEYARD:
|
||||
for (Player player : getPlayers().values()) {
|
||||
if (player.getGraveyard().contains(copiedCard.getId())) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue