forked from External/mage
Adventures basically working.
No graphics yet.
This commit is contained in:
parent
04a4b91a59
commit
19a9d98287
6 changed files with 64 additions and 6 deletions
|
|
@ -5,6 +5,7 @@ import mage.abilities.*;
|
|||
import mage.abilities.effects.ContinuousEffect;
|
||||
import mage.abilities.effects.ContinuousEffects;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.cards.AdventureCard;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.SplitCard;
|
||||
import mage.constants.Zone;
|
||||
|
|
@ -811,6 +812,9 @@ public class GameState implements Serializable, Copyable<GameState> {
|
|||
removeCopiedCard(((SplitCard) card).getLeftHalfCard());
|
||||
removeCopiedCard(((SplitCard) card).getRightHalfCard());
|
||||
}
|
||||
if (card instanceof AdventureCard) {
|
||||
removeCopiedCard(((AdventureCard) card).getSpellCard());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -1166,6 +1170,11 @@ public class GameState implements Serializable, Copyable<GameState> {
|
|||
copiedCards.put(rightCard.getId(), rightCard);
|
||||
addCard(rightCard);
|
||||
}
|
||||
if (copiedCard instanceof AdventureCard) {
|
||||
Card spellCard = ((AdventureCard) copiedCard).getSpellCard();
|
||||
copiedCards.put(spellCard.getId(), spellCard);
|
||||
addCard(spellCard);
|
||||
}
|
||||
return copiedCard;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue