mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 12:31:59 -08:00
* 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) {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
package mage.abilities.keyword;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
|
|
@ -19,9 +18,15 @@ public class RampageAbility extends BecomesBlockedTriggeredAbility {
|
|||
private final String rule;
|
||||
|
||||
public RampageAbility(int amount) {
|
||||
this(amount, false);
|
||||
}
|
||||
|
||||
public RampageAbility(int amount, boolean shortRuleText) {
|
||||
super(null, false);
|
||||
rule = "rampage " + amount + " (Whenever this creature becomes blocked, it gets +"
|
||||
+ amount + "/+" + amount + " until end of turn for each creature blocking it beyond the first.)";
|
||||
rule = "rampage " + amount
|
||||
+ (shortRuleText ? ""
|
||||
: " <i>(Whenever this creature becomes blocked, it gets +"
|
||||
+ amount + "/+" + amount + " until end of turn for each creature blocking it beyond the first.)</i>");
|
||||
RampageValue rv = new RampageValue(amount);
|
||||
this.addEffect(new BoostSourceEffect(rv, rv, Duration.EndOfTurn, true));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue