mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00:00
un-reverted change, fixed test failure
This commit is contained in:
parent
0bf26db3b5
commit
40a374b407
2 changed files with 6 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue