GameSimTest: add test for Dimir Doppelganger

This commit is contained in:
Hanmac
2019-01-29 08:12:22 +01:00
parent 8c0c78046b
commit 1bd762c0f8
3 changed files with 102 additions and 0 deletions

View File

@@ -267,6 +267,7 @@ public class GameCopier {
System.err.println(sa.toString());
}
}
return newCard;
}
@@ -295,6 +296,7 @@ public class GameCopier {
newCard.setChangedCardTypes(c.getChangedCardTypesMap());
newCard.setChangedCardKeywords(c.getChangedCardKeywords());
// TODO: Is this correct? Does it not duplicate keywords from enchantments and such?
for (KeywordInterface kw : c.getHiddenExtrinsicKeywords())
newCard.addHiddenExtrinsicKeyword(kw);
@@ -335,6 +337,9 @@ public class GameCopier {
}
}
newCard.setFlipped(c.isFlipped());
newCard.setCloneStates(c.getCloneStates());
Map<CounterType, Integer> counters = c.getCounters();
if (!counters.isEmpty()) {
newCard.setCounters(Maps.newEnumMap(counters));