Merge pull request #1502 from tool4ever/mutatefix

Fix mutated cards disappearing when top is token
This commit is contained in:
Anthony Calosa
2022-09-10 16:33:40 +08:00
committed by GitHub
4 changed files with 5 additions and 5 deletions

View File

@@ -91,8 +91,8 @@ public class PlayEffect extends SpellAbilityEffect {
final boolean imprint = sa.hasParam("ImprintPlayed");
final boolean forget = sa.hasParam("ForgetPlayed");
final boolean hasTotalCMCLimit = sa.hasParam("WithTotalCMC");
int amount = 1;
int totalCMCLimit = Integer.MAX_VALUE;
int amount = 1;
if (sa.hasParam("Amount") && !sa.getParam("Amount").equals("All")) {
amount = AbilityUtils.calculateAmount(source, sa.getParam("Amount"), sa);
}

View File

@@ -77,7 +77,7 @@ public class CardFactory {
*/
public final static Card copyCard(final Card in, boolean assignNewId) {
Card out;
if (!(in.isToken() || in.getCopiedPermanent() != null)) {
if (!(in.isRealToken() || in.getCopiedPermanent() != null)) {
out = assignNewId ? getCard(in.getPaperCard(), in.getOwner(), in.getGame())
: getCard(in.getPaperCard(), in.getOwner(), in.getId(), in.getGame());
} else { // token