From cba3f0ee12cb8abe64d45d413c0e13e011c6af4f Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Sun, 19 Apr 2020 21:32:51 +0400 Subject: [PATCH] * As an additional cost to cast - fixed wrong text (reveal cost, etc); --- Mage/src/main/java/mage/abilities/AbilitiesImpl.java | 6 +++++- .../mage/abilities/costs/common/DiscardXTargetCost.java | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Mage/src/main/java/mage/abilities/AbilitiesImpl.java b/Mage/src/main/java/mage/abilities/AbilitiesImpl.java index d389a5ac15..15c1da8270 100644 --- a/Mage/src/main/java/mage/abilities/AbilitiesImpl.java +++ b/Mage/src/main/java/mage/abilities/AbilitiesImpl.java @@ -73,10 +73,14 @@ public class AbilitiesImpl extends ArrayList implements Ab StringBuilder sbRule = threadLocalBuilder.get(); for (Cost cost : ability.getCosts()) { if (cost.getText() != null && !cost.getText().isEmpty()) { + String costText = cost.getText(); if (!cost.getText().startsWith("As an additional cost")) { sbRule.append("As an additional cost to cast this spell, "); + if (!costText.isEmpty()) { + costText = Character.toLowerCase(costText.charAt(0)) + costText.substring(1); + } } - sbRule.append(cost.getText()).append(".
"); + sbRule.append(costText).append(".
"); } } rules.add(sbRule.toString()); diff --git a/Mage/src/main/java/mage/abilities/costs/common/DiscardXTargetCost.java b/Mage/src/main/java/mage/abilities/costs/common/DiscardXTargetCost.java index f3230c2f82..8f65b0782f 100644 --- a/Mage/src/main/java/mage/abilities/costs/common/DiscardXTargetCost.java +++ b/Mage/src/main/java/mage/abilities/costs/common/DiscardXTargetCost.java @@ -21,7 +21,7 @@ public class DiscardXTargetCost extends VariableCostImpl { public DiscardXTargetCost(FilterCard filter, boolean additionalCostText) { super(filter.getMessage() + " to discard"); - this.text = (additionalCostText ? "as an additional cost to cast this spell, discard " : "discard ") + xText + ' ' + filter.getMessage(); + this.text = (additionalCostText ? "as an additional cost to cast this spell, discard " : "Discard ") + xText + ' ' + filter.getMessage(); this.filter = filter; }