forked from External/mage
* Fixed handling of Split cards (fixes #670).
This commit is contained in:
parent
ee5a75169a
commit
dd54269216
13 changed files with 127 additions and 41 deletions
|
|
@ -210,7 +210,7 @@ public class Spell implements StackObject, Card {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (game.getState().getZone(card.getId()) == Zone.STACK) {
|
||||
if (game.getState().getZone(card.getMainCard().getId()) == Zone.STACK) {
|
||||
card.moveToZone(Zone.GRAVEYARD, ability.getSourceId(), game, false);
|
||||
}
|
||||
}
|
||||
|
|
@ -999,4 +999,14 @@ public class Spell implements StackObject, Card {
|
|||
return card.isMorphCard();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Card getMainCard() {
|
||||
return card.getMainCard();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setZone(Zone zone, Game game) {
|
||||
card.setZone(zone, game);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue