forked from External/mage
* Copied cards - Copied cards cease to exist on check of next state based effects if they are returned to hand (#611).
This commit is contained in:
parent
751365124e
commit
e7e6a5bb99
4 changed files with 76 additions and 27 deletions
|
|
@ -539,9 +539,15 @@ public class GameState implements Serializable, Copyable<GameState> {
|
|||
for (Ability ability: card.getAbilities()) {
|
||||
addAbility(ability, card);
|
||||
}
|
||||
}
|
||||
|
||||
public void removeCard(Card card) {
|
||||
zones.remove(card.getId());
|
||||
// TODO Watchers?
|
||||
// TODO Abilities?
|
||||
if (card.isSplitCard()) {
|
||||
addCard( ((SplitCard)card).getLeftHalfCard());
|
||||
addCard( ((SplitCard)card).getRightHalfCard());
|
||||
removeCard( ((SplitCard)card).getLeftHalfCard());
|
||||
removeCard( ((SplitCard)card).getRightHalfCard());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue