From 323b4f888058d616046227d2f464f63ef26b5226 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sun, 30 Aug 2020 12:07:23 +0200 Subject: [PATCH] * Fixed wrong Kard name in MTGO Legacy Cube July 2019 (Kozilek, Butcher of Truth), added a test. --- .../tournament/cubes/LegacyCubeJuly2019.java | 3 +- .../cards/replacement/DoublingSeasonTest.java | 35 ++++++++++++++++--- 2 files changed, 31 insertions(+), 7 deletions(-) diff --git a/Mage.Server.Plugins/Mage.Tournament.BoosterDraft/src/mage/tournament/cubes/LegacyCubeJuly2019.java b/Mage.Server.Plugins/Mage.Tournament.BoosterDraft/src/mage/tournament/cubes/LegacyCubeJuly2019.java index 69c42eb0f5..b61297761f 100644 --- a/Mage.Server.Plugins/Mage.Tournament.BoosterDraft/src/mage/tournament/cubes/LegacyCubeJuly2019.java +++ b/Mage.Server.Plugins/Mage.Tournament.BoosterDraft/src/mage/tournament/cubes/LegacyCubeJuly2019.java @@ -1,4 +1,3 @@ - package mage.tournament.cubes; import mage.game.draft.DraftCube; @@ -295,7 +294,7 @@ public class LegacyCubeJuly2019 extends DraftCube { cubeCards.add(new CardIdentity("Kodama's Reach", "")); cubeCards.add(new CardIdentity("Kolaghan's Command", "")); cubeCards.add(new CardIdentity("Koth of the Hammer", "")); - cubeCards.add(new CardIdentity("Kozilek, Butcher of Truths", "")); + cubeCards.add(new CardIdentity("Kozilek, Butcher of Truth", "")); cubeCards.add(new CardIdentity("Kytheon, Hero of Akros", "")); cubeCards.add(new CardIdentity("Land Tax", "")); cubeCards.add(new CardIdentity("Languish", "")); diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/replacement/DoublingSeasonTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/replacement/DoublingSeasonTest.java index 173bb38a70..820ab1a7a4 100644 --- a/Mage.Tests/src/test/java/org/mage/test/cards/replacement/DoublingSeasonTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/cards/replacement/DoublingSeasonTest.java @@ -194,10 +194,11 @@ public class DoublingSeasonTest extends CardTestPlayerBase { } /** - * Gatherer Ruling: - * 10/1/2005: Planeswalkers will enter the battlefield with double the normal amount of loyalty counters. However, - * if you activate an ability whose cost has you put loyalty counters on a planeswalker, the number you put on isn't doubled. - * This is because those counters are put on as a cost, not as an effect. + * Gatherer Ruling: 10/1/2005: Planeswalkers will enter the battlefield with + * double the normal amount of loyalty counters. However, if you activate an + * ability whose cost has you put loyalty counters on a planeswalker, the + * number you put on isn't doubled. This is because those counters are put + * on as a cost, not as an effect. */ @Test public void testPlaneswalkerLoyalty() { @@ -218,7 +219,8 @@ public class DoublingSeasonTest extends CardTestPlayerBase { } /** - * +1 cost is not affected by double, but replace event like Pir, Imaginative Rascal will be affected + * +1 cost is not affected by double, but replace event like Pir, + * Imaginative Rascal will be affected * https://github.com/magefree/mage/issues/5802 */ @Test @@ -250,4 +252,27 @@ public class DoublingSeasonTest extends CardTestPlayerBase { assertCounterCount(playerA, "Chandra, Fire Artisan", CounterType.LOYALTY, 4 + (1 + 1) * 2); } + + @Test + public void testPlaneswalkerCreatesToken() { + setStrictChooseMode(true); + + // +1: Create a 2/2 black Zombie creature token. + // -4: Each player sacrifices two creatures. + // -9: Each opponent chooses a permanent they control of each permanent type and sacrifices the rest. + addCard(Zone.BATTLEFIELD, playerA, "Liliana, Dreadhorde General"); + // If an effect would create one or more tokens under your control, it creates twice that many of those tokens instead. + // If an effect would put one or more counters on a permanent you control, it puts twice that many of those counters on that permanent instead. + addCard(Zone.BATTLEFIELD, playerA, "Doubling Season"); // + + activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "+1"); + + setStopAt(1, PhaseStep.BEGIN_COMBAT); + execute(); + + assertAllCommandsUsed(); + + assertPermanentCount(playerA, "Zombie", 2); + } + }