Merge pull request #283 from tool4ever/caststuff

Fix casting card copies not being added to stack correctly
This commit is contained in:
Anthony Calosa
2022-05-08 05:53:50 +08:00
committed by GitHub
4 changed files with 12 additions and 7 deletions

View File

@@ -275,7 +275,12 @@ public class GameAction {
lastKnownInfo = CardUtil.getLKICopy(c); lastKnownInfo = CardUtil.getLKICopy(c);
} }
// CR 707.12 casting of a card copy, don't copy it again
if (zoneTo.is(ZoneType.Stack) && c.isRealToken()) {
copied = c;
} else {
copied = CardFactory.copyCard(c, false); copied = CardFactory.copyCard(c, false);
}
if (zoneTo.is(ZoneType.Stack)) { if (zoneTo.is(ZoneType.Stack)) {
// when moving to stack, copy changed card information // when moving to stack, copy changed card information