mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
more text fixes
This commit is contained in:
parent
18a050fb70
commit
49d65c1a88
51 changed files with 60 additions and 70 deletions
|
|
@ -284,7 +284,8 @@ public class AlternativeCostSourceAbility extends StaticAbility implements Alter
|
|||
}
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (condition != null) {
|
||||
sb.append(condition.toString());
|
||||
sb.append("if ");
|
||||
sb.append(condition);
|
||||
if (alternateCosts.size() > 1) {
|
||||
sb.append(", rather than pay this spell's mana cost, ");
|
||||
} else {
|
||||
|
|
@ -293,8 +294,6 @@ public class AlternativeCostSourceAbility extends StaticAbility implements Alter
|
|||
} else {
|
||||
sb.append("You may ");
|
||||
}
|
||||
int numberCosts = 0;
|
||||
String remarkText = "";
|
||||
sb.append(CardUtil.concatWithAnd(alternateCosts
|
||||
.stream()
|
||||
.map(cost -> cost.getCost() instanceof ManaCost
|
||||
|
|
@ -308,9 +307,6 @@ public class AlternativeCostSourceAbility extends StaticAbility implements Alter
|
|||
sb.append("cast this spell without paying its mana cost");
|
||||
}
|
||||
sb.append('.');
|
||||
if (numberCosts == 1 && remarkText != null) {
|
||||
sb.append(' ').append(remarkText);
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue