mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
fixed missing mana costs
This commit is contained in:
parent
f11ab3b326
commit
9ca981955c
1 changed files with 13 additions and 1 deletions
|
@ -68,7 +68,19 @@ public class KickerAbility extends StaticAbility {
|
|||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "Kicker " + costs.getText() + ":" + effects.getText() + (replaces?" instead":"");
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("Kicker");
|
||||
if (manaCosts.size() > 0) {
|
||||
sb.append(manaCosts.getText());
|
||||
if (costs.size() > 0)
|
||||
sb.append(",");
|
||||
}
|
||||
if (costs.size() > 0)
|
||||
sb.append(costs.getText());
|
||||
sb.append(":").append(effects.getText());
|
||||
if (replaces)
|
||||
sb.append(" instead");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue