From f2ba76ca7564db2758ab48147e6e62bab2108d18 Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Sat, 17 Jul 2021 19:43:05 +0400 Subject: [PATCH] Tests: fixed miss commands, fixed debug info for permanents on battlefield; --- .../test/java/org/mage/test/cards/continuous/LayerTests.java | 2 ++ Mage/src/main/java/mage/game/permanent/PermanentCard.java | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/continuous/LayerTests.java b/Mage.Tests/src/test/java/org/mage/test/cards/continuous/LayerTests.java index fd37221edf..af0e70cef3 100644 --- a/Mage.Tests/src/test/java/org/mage/test/cards/continuous/LayerTests.java +++ b/Mage.Tests/src/test/java/org/mage/test/cards/continuous/LayerTests.java @@ -221,8 +221,10 @@ public class LayerTests extends CardTestPlayerBase { addCard(Zone.BATTLEFIELD, playerA, "Swamp", 1); addCard(Zone.BATTLEFIELD, playerB, "Island", 1); + setStrictChooseMode(true); setStopAt(1, PhaseStep.POSTCOMBAT_MAIN); execute(); + assertAllCommandsUsed(); // all lands are forests in addition to other types assertType("Plains", CardType.CREATURE, SubType.FOREST); diff --git a/Mage/src/main/java/mage/game/permanent/PermanentCard.java b/Mage/src/main/java/mage/game/permanent/PermanentCard.java index 6ce8e1062b..ffa2cb18c4 100644 --- a/Mage/src/main/java/mage/game/permanent/PermanentCard.java +++ b/Mage/src/main/java/mage/game/permanent/PermanentCard.java @@ -220,4 +220,9 @@ public class PermanentCard extends PermanentImpl { public Card getMainCard() { return card.getMainCard(); } + + @Override + public String toString() { + return card.toString(); + } }