mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
text fixes
This commit is contained in:
parent
a7ff929e63
commit
118978e39d
10 changed files with 22 additions and 19 deletions
|
|
@ -31,6 +31,7 @@ import mage.abilities.Ability;
|
|||
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
|
||||
import mage.abilities.costs.Cost;
|
||||
import mage.abilities.costs.CostsImpl;
|
||||
import mage.abilities.costs.OrCost;
|
||||
import mage.abilities.costs.mana.ManaCost;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
|
|
@ -70,9 +71,11 @@ public class CumulativeUpkeepAbility extends BeginningOfUpkeepTriggeredAbility {
|
|||
|
||||
@Override
|
||||
public String getRule() {
|
||||
StringBuilder sb = new StringBuilder("Cumulative upkeep ");
|
||||
if (!(cumulativeCost instanceof ManaCost)) {
|
||||
sb.append("— ");
|
||||
StringBuilder sb = new StringBuilder("Cumulative upkeep");
|
||||
if (!(cumulativeCost instanceof ManaCost || cumulativeCost instanceof OrCost)) {
|
||||
sb.append("—");
|
||||
} else {
|
||||
sb.append(' ');
|
||||
}
|
||||
sb.append(cumulativeCost.getText());
|
||||
return sb.toString();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue