From a83ccc4dec80ecc7f9181c7fb88cd9bb104eee36 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sun, 23 Jun 2013 15:10:51 +0200 Subject: [PATCH] * Suspend Ability - added parameter to set short rule text. --- .../src/mage/abilities/keyword/SuspendAbility.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Mage/src/mage/abilities/keyword/SuspendAbility.java b/Mage/src/mage/abilities/keyword/SuspendAbility.java index e9c57af4980..1242a128d7f 100644 --- a/Mage/src/mage/abilities/keyword/SuspendAbility.java +++ b/Mage/src/mage/abilities/keyword/SuspendAbility.java @@ -139,6 +139,7 @@ public class SuspendAbility extends ActivatedAbilityImpl { private String ruleText; private boolean gainedTemporary; + private boolean shortRule; /** * Gives the card the SuspendAbility @@ -147,14 +148,19 @@ public class SuspendAbility extends ActivatedAbilityImpl { * @param cost - null is used for temporary gained suspend ability * @param card - card that has the suspend ability */ - public SuspendAbility(int suspend, ManaCost cost, Card card) { + this(suspend, cost, card, false); + } + + public SuspendAbility(int suspend, ManaCost cost, Card card, boolean shortRule) { super(Zone.HAND, new SuspendExileEffect(suspend), cost); this.usesStack = false; + this.shortRule = shortRule; StringBuilder sb = new StringBuilder("Suspend "); if (cost != null) { - sb.append(suspend).append(" - ").append(cost.getText()) - .append(" (Rather than cast this card from your hand, pay ") + sb.append(suspend).append(" - ").append(cost.getText()); + if (!shortRule) { + sb.append(" (Rather than cast this card from your hand, pay ") .append(cost.getText()) .append(" and exile it with ") .append(suspend == 1 ? "a time counter":suspend + " time counters") @@ -162,6 +168,7 @@ public class SuspendAbility extends ActivatedAbilityImpl { .append(" At the beginning of your upkeep, remove a time counter. When the last is removed, cast it without paying its mana cost.") .append(card.getCardType().contains(CardType.CREATURE)? " If you play it this way and it's a creature, it gains haste until you lose control of it.":"") .append(")"); + } } else { gainedTemporary = true; } @@ -183,6 +190,7 @@ public class SuspendAbility extends ActivatedAbilityImpl { super(ability); this.ruleText = ability.getRule(); this.gainedTemporary = ability.gainedTemporary; + this.shortRule = ability.shortRule; } @Override