forked from External/mage
* Old Fogey - Shortened the generated rule text, so that nothing was cut at the end of the text.
This commit is contained in:
parent
bcbd1e87a6
commit
f7ccca6964
3 changed files with 19 additions and 9 deletions
|
|
@ -23,12 +23,18 @@ public class FadingAbility extends EntersBattlefieldAbility {
|
|||
private String ruleText;
|
||||
|
||||
public FadingAbility(int fadeCounter, Card card) {
|
||||
this(fadeCounter, card, false);
|
||||
}
|
||||
|
||||
public FadingAbility(int fadeCounter, Card card, boolean shortRuleText) {
|
||||
super(new AddCountersSourceEffect(CounterType.FADE.createInstance(fadeCounter)), "with");
|
||||
Ability ability = new BeginningOfUpkeepTriggeredAbility(new FadingEffect(), TargetController.YOU, false);
|
||||
ability.setRuleVisible(false);
|
||||
addSubAbility(ability);
|
||||
ruleText = "Fading " + fadeCounter + " <i>(This permanent enters the battlefield with " + fadeCounter + " fade counters on it."
|
||||
+ " At the beginning of your upkeep, remove a fade counter from this permanent. If you can't, sacrifice the permanent.</i>";
|
||||
ruleText = "Fading " + fadeCounter
|
||||
+ (shortRuleText ? ""
|
||||
: " <i>(This permanent enters the battlefield with " + fadeCounter + " fade counters on it."
|
||||
+ " At the beginning of your upkeep, remove a fade counter from this permanent. If you can't, sacrifice the permanent.</i>");
|
||||
}
|
||||
|
||||
public FadingAbility(final FadingAbility ability) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue