mirror of
https://github.com/magefree/mage.git
synced 2026-01-22 19:29:59 -08:00
Fixed Issue#48: Additional cost for creatures is not displayed
This commit is contained in:
parent
15371eab3f
commit
afb5162e6a
3 changed files with 8 additions and 3 deletions
|
|
@ -85,7 +85,12 @@ public class AbilitiesImpl<T extends Ability> extends ArrayList<T> implements Ab
|
|||
if (ability.getCosts().size() > 0) {
|
||||
StringBuilder sbRule = new StringBuilder();
|
||||
for (Cost cost: ability.getCosts()) {
|
||||
sbRule.append(cost.getText()).append(".\n");
|
||||
if (cost.getText() != null && !cost.getText().isEmpty()) {
|
||||
if (!cost.getText().startsWith("As an additional cost")) {
|
||||
sbRule.append("As an additional cost to cast {this}, ");
|
||||
}
|
||||
sbRule.append(cost.getText()).append(".\n");
|
||||
}
|
||||
}
|
||||
rules.add(sbRule.toString());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue