diff --git a/.gitignore b/.gitignore index 15d874097c..6246ef7be5 100644 --- a/.gitignore +++ b/.gitignore @@ -49,6 +49,7 @@ Mage.Server.Plugins/Mage.Game.FreeForAll/target Mage.Server.Plugins/Mage.Game.MomirDuel/target Mage.Server.Plugins/Mage.Game.MomirGame/target/ Mage.Server.Plugins/Mage.Game.PennyDreadfulCommanderFreeForAll/target +Mage.Server.Plugins/Mage.Game.FreeformCommanderDuel/target/ Mage.Server.Plugins/Mage.Game.FreeformCommanderFreeForAll/target/ Mage.Server.Plugins/Mage.Game.TinyLeadersDuel/target Mage.Server.Plugins/Mage.Game.TwoPlayerDuel/target diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/single/war/KioraTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/single/war/KioraTest.java new file mode 100644 index 0000000000..18ba5479c2 --- /dev/null +++ b/Mage.Tests/src/test/java/org/mage/test/cards/single/war/KioraTest.java @@ -0,0 +1,50 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package org.mage.test.cards.single.war; + +import mage.constants.PhaseStep; +import mage.constants.Zone; +import mage.counters.CounterType; +import org.junit.Test; +import org.mage.test.serverside.base.CardTestPlayerBase; + +/** + * @author escplan9 + */ +public class KioraTest extends CardTestPlayerBase { + + /* + {2} {U/G} + 7 loyalty + Whenever a creature with power 4 or greater enters the battlefield, draw a card. + [-1]: Untap target permanent. + */ + public final String kiora = "Kiora, Behemoth Beckoner"; + + + @Test + public void kioraUntapLand() { + + addCard(Zone.BATTLEFIELD, playerA, kiora); + addCard(Zone.BATTLEFIELD, playerA, "Bronze Sable"); // {2} 2/1 + addCard(Zone.BATTLEFIELD, playerA, "Forest"); + addCard(Zone.HAND, playerA, "Giant Growth"); + + // cast a spell to tap the only land + castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Giant Growth", "Bronze Sable"); + + // untap that only land + activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "-1: Untap target permanent", "Forest"); + setStopAt(1, PhaseStep.BEGIN_COMBAT); + execute(); + + assertGraveyardCount(playerA, "Giant Growth", 1); + assertHandCount(playerA, 0); + assertPowerToughness(playerA, "Bronze Sable", 5, 4); // giant growthed 2/1 + 3/3 = 5/4 + assertCounterCount(playerA, kiora, CounterType.LOYALTY, 6); + assertTapped("Forest", false); // Kiora's untap + } +} \ No newline at end of file