From fe42bc6e497fc82b955038a9562db4b65b89a384 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 19 Feb 2022 17:19:52 -0500 Subject: [PATCH] added Heart of Kiran test --- .../cards/abilities/keywords/CrewTest.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/CrewTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/CrewTest.java index b9f716f2a6..31ac01d196 100644 --- a/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/CrewTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/CrewTest.java @@ -6,6 +6,7 @@ import mage.constants.CardType; import mage.constants.PhaseStep; import mage.constants.SubType; import mage.constants.Zone; +import mage.counters.CounterType; import org.junit.Test; import org.mage.test.serverside.base.CardTestPlayerBase; @@ -26,6 +27,8 @@ public class CrewTest extends CardTestPlayerBase { private static final String crusher = "Irontread Crusher"; private static final String mechanic = "Hotshot Mechanic"; private static final String express = "Aradara Express"; + private static final String heart = "Heart of Kiran"; + private static final String jace = "Jace Beleren"; @Test public void crewBasicTest() { @@ -139,4 +142,20 @@ public class CrewTest extends CardTestPlayerBase { assertType(express, CardType.ARTIFACT, true); assertType(express, CardType.CREATURE, SubType.VEHICLE); } + + @Test + public void testHeartOfKiran() { + addCard(Zone.BATTLEFIELD, playerA, jace); + addCard(Zone.BATTLEFIELD, playerA, heart); + + activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Crew 3"); + + setStopAt(1, PhaseStep.END_TURN); + execute(); + assertAllCommandsUsed(); + + assertCounterCount(playerA, jace, CounterType.LOYALTY, 2); + assertType(heart, CardType.ARTIFACT, true); + assertType(heart, CardType.CREATURE, SubType.VEHICLE); + } }