mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Fix GameSimulatorTest and add a testcase I forgot to add before.
This commit is contained in:
@@ -222,11 +222,12 @@ public class GameCopier {
|
||||
}
|
||||
if (c.isFaceDown()) {
|
||||
boolean isCreature = newCard.isCreature();
|
||||
boolean hasManaCost = !newCard.getManaCost().isNoCost();
|
||||
newCard.setState(CardStateName.FaceDown, true);
|
||||
if (c.isManifested()) {
|
||||
newCard.setManifested(true);
|
||||
// TODO: Should be able to copy other abilities...
|
||||
if (isCreature && ! newCard.getManaCost().isNoCost()) {
|
||||
if (isCreature && hasManaCost) {
|
||||
newCard.addSpellAbility(CardFactoryUtil.abilityManifestFaceUp(newCard, newCard.getManaCost()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ public class GameSimulator {
|
||||
eval.getScoreForGameState(origGame, origAiPlayer);
|
||||
// Print debug info.
|
||||
printDiff(origLines, simLines);
|
||||
throw new RuntimeException("Game copy error");
|
||||
throw new RuntimeException("Game copy error. See diff output above for details.");
|
||||
}
|
||||
eval.setDebugging(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user