forked from External/mage
* As an additional cost to cast - fixed wrong text (reveal cost, etc);
This commit is contained in:
parent
39894c6394
commit
cba3f0ee12
2 changed files with 6 additions and 2 deletions
|
|
@ -73,10 +73,14 @@ public class AbilitiesImpl<T extends Ability> extends ArrayList<T> 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(".<br>");
|
||||
sbRule.append(costText).append(".<br>");
|
||||
}
|
||||
}
|
||||
rules.add(sbRule.toString());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue