From 40a374b407cbc5faf425bc680c48d5d42bb4a9e1 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sun, 18 Apr 2021 08:12:32 -0400 Subject: [PATCH] un-reverted change, fixed test failure --- .../mage/test/cards/abilities/keywords/DelveTest.java | 10 +++++----- .../abilities/costs/common/ExileFromGraveCost.java | 4 +--- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/DelveTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/DelveTest.java index 854f9c9ada..b657263388 100644 --- a/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/DelveTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/DelveTest.java @@ -29,13 +29,13 @@ public class DelveTest extends CardTestPlayerBaseWithAIHelps { setChoice(playerA, "Blue"); // pay 1 setChoice(playerA, "Blue"); // pay 2 // delve can be payed in test only by one card - setChoice(playerA, "Exile cards"); + setChoice(playerA, "Exile a card"); setChoice(playerA, "Balduvian Bears"); // pay 3 as delve - setChoice(playerA, "Exile cards"); + setChoice(playerA, "Exile a card"); setChoice(playerA, "Balduvian Bears"); // pay 4 as delve - setChoice(playerA, "Exile cards"); + setChoice(playerA, "Exile a card"); setChoice(playerA, "Balduvian Bears"); // pay 5 as delve - setChoice(playerA, "Exile cards"); + setChoice(playerA, "Exile a card"); setChoice(playerA, "Balduvian Bears"); // pay 6 as delve setStrictChooseMode(true); @@ -105,7 +105,7 @@ public class DelveTest extends CardTestPlayerBaseWithAIHelps { activateManaAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{T}: Add {U}"); castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Treasure Cruise"); - setChoice(playerA, "Exile cards"); // delve activate (special button in UI) + setChoice(playerA, "Exile a card"); // delve activate (special button in UI) setChoice(playerA, TestPlayer.CHOICE_SKIP); // devle cost with nothing (done button in UI) setChoice(playerA, TestPlayer.MANA_CANCEL); // mana payment cancel (cancel button in UI) setChoice(playerA, TestPlayer.SKIP_FAILED_COMMAND); // delete cast/activate command from queue diff --git a/Mage/src/main/java/mage/abilities/costs/common/ExileFromGraveCost.java b/Mage/src/main/java/mage/abilities/costs/common/ExileFromGraveCost.java index 5a9377fe13..dacc8bcbde 100644 --- a/Mage/src/main/java/mage/abilities/costs/common/ExileFromGraveCost.java +++ b/Mage/src/main/java/mage/abilities/costs/common/ExileFromGraveCost.java @@ -38,9 +38,7 @@ public class ExileFromGraveCost extends CostImpl { + CardUtil.numberToText(target.getMaxNumberOfTargets())) + ' ' + target.getTargetName(); } else { - this.text = "exile " - + (target.getTargetName().startsWith("card ") ? "a " : "") - + target.getTargetName(); + this.text = "exile " + CardUtil.addArticle(target.getTargetName().replace("cards ", "card ")); } if (!this.text.endsWith(" from your graveyard")) { this.text = this.text + " from your graveyard";