mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 07:22:03 -08:00
* Chain of Vapor - Fixed that the copied spell did nor work correctly.
This commit is contained in:
parent
1ee22be81a
commit
7627935d93
5 changed files with 90 additions and 26 deletions
|
|
@ -365,7 +365,7 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
|
|||
game.getState().getCommand().remove((Commander) game.getObject(objectId));
|
||||
break;
|
||||
case STACK:
|
||||
StackObject stackObject = game.getStack().getSpell(getId());
|
||||
StackObject stackObject = game.getStack().getSpell(getSpellAbility().getId());
|
||||
if (stackObject == null && (this instanceof SplitCard)) { // handle if half of Split cast is on the stack
|
||||
stackObject = game.getStack().getSpell(((SplitCard) this).getLeftHalfCard().getId());
|
||||
if (stackObject == null) {
|
||||
|
|
|
|||
|
|
@ -197,9 +197,11 @@ public class Spell extends StackObjImpl implements Card {
|
|||
}
|
||||
}
|
||||
if (game.getState().getZone(card.getMainCard().getId()) == Zone.STACK) {
|
||||
Player player = game.getPlayer(getControllerId());
|
||||
if (player != null) {
|
||||
player.moveCards(card, Zone.STACK, Zone.GRAVEYARD, ability, game);
|
||||
if (isCopy() == card.isCopy()) {
|
||||
Player player = game.getPlayer(getControllerId());
|
||||
if (player != null) {
|
||||
player.moveCards(card, Zone.STACK, Zone.GRAVEYARD, ability, game);
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue