mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +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
|
@Override
|
||||||
public String getRule() {
|
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