* Old Fogey - Shortened the generated rule text, so that nothing was cut at the end of the text.

This commit is contained in:
LevelX2 2019-01-07 11:38:08 +01:00
parent bcbd1e87a6
commit f7ccca6964
3 changed files with 19 additions and 9 deletions

View file

@ -1,4 +1,3 @@
package mage.cards.o;
import java.util.UUID;
@ -39,7 +38,7 @@ public final class OldFogey extends CardImpl {
}
public OldFogey(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{G}{G}");
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{G}{G}");
this.subtype.add(SubType.DINOSAUR);
this.power = new MageInt(7);
this.toughness = new MageInt(7);
@ -51,7 +50,7 @@ public final class OldFogey extends CardImpl {
// Echo {G}{G}
this.addAbility(new EchoAbility("{G}{G}"));
// Fading 3
this.addAbility(new FadingAbility(3, this));
this.addAbility(new FadingAbility(3, this, true));
// Bands with other Dinosaurs
this.addAbility(new BandsWithOtherAbility(SubType.DINOSAUR));
// Protection from Homarids
@ -61,7 +60,7 @@ public final class OldFogey extends CardImpl {
// Flanking
this.addAbility(new FlankingAbility());
// Rampage 2
this.addAbility(new RampageAbility(2));
this.addAbility(new RampageAbility(2, true));
}
public OldFogey(final OldFogey card) {

View file

@ -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) {

View file

@ -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));
}