forked from External/mage
updated additional cost text
This commit is contained in:
parent
52ae0a9be6
commit
b82475dcff
16 changed files with 20 additions and 20 deletions
|
|
@ -52,13 +52,13 @@ import mage.target.common.TargetCardInHand;
|
|||
public class AbandonHope extends CardImpl {
|
||||
|
||||
public AbandonHope(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{X}{1}{B}");
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{X}{1}{B}");
|
||||
|
||||
// As an additional cost to cast Abandon Hope, discard X cards.
|
||||
Ability ability = new SimpleStaticAbility(Zone.ALL, new AbandonHopeRuleEffect());
|
||||
ability.setRuleAtTheTop(true);
|
||||
this.addAbility(ability);
|
||||
|
||||
|
||||
// Look at target opponent's hand and choose X cards from it. That player discards those cards.
|
||||
ManacostVariableValue manaX = new ManacostVariableValue();
|
||||
this.getSpellAbility().addEffect(new DiscardCardYouChooseTargetEffect(manaX, TargetController.ANY));
|
||||
|
|
@ -68,7 +68,7 @@ public class AbandonHope extends CardImpl {
|
|||
public AbandonHope(final AbandonHope card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void adjustCosts(Ability ability, Game game) {
|
||||
int xValue = ability.getManaCostsToPay().getX();
|
||||
|
|
@ -87,7 +87,7 @@ class AbandonHopeRuleEffect extends OneShotEffect {
|
|||
|
||||
public AbandonHopeRuleEffect() {
|
||||
super(Outcome.Benefit);
|
||||
this.staticText = "As an additional cost to cast {this}, discard X cards";
|
||||
this.staticText = "As an additional cost to cast this spell, discard X cards";
|
||||
}
|
||||
|
||||
public AbandonHopeRuleEffect(final AbandonHopeRuleEffect effect) {
|
||||
|
|
@ -103,4 +103,4 @@ class AbandonHopeRuleEffect extends OneShotEffect {
|
|||
public boolean apply(Game game, Ability source) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ class CallerOfTheHuntAdditionalCostEffect extends OneShotEffect {
|
|||
|
||||
public CallerOfTheHuntAdditionalCostEffect() {
|
||||
super(Outcome.Benefit);
|
||||
this.staticText = "As an additional cost to cast {this}, choose a creature type. \r"
|
||||
this.staticText = "as an additional cost to cast this spell, choose a creature type. \r"
|
||||
+ "{this}'s power and toughness are each equal to the number of creatures of the chosen type on the battlefield";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ class DevastatingDreamsAdditionalCost extends VariableCostImpl {
|
|||
|
||||
DevastatingDreamsAdditionalCost() {
|
||||
super("cards to discard randomly");
|
||||
this.text = "As an additional cost to cast {this}, discard X cards at random";
|
||||
this.text = "as an additional cost to cast this spell, discard X cards at random";
|
||||
}
|
||||
|
||||
DevastatingDreamsAdditionalCost(final DevastatingDreamsAdditionalCost cost) {
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ public class DraconicRoar extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{R}");
|
||||
|
||||
// As an additional cost to cast Draconic Roar, you may reveal a Dragon card from your hand.
|
||||
this.getSpellAbility().addEffect(new InfoEffect("As an additional cost to cast {this}, you may reveal a Dragon card from your hand"));
|
||||
this.getSpellAbility().addEffect(new InfoEffect("as an additional cost to cast this spell, you may reveal a Dragon card from your hand"));
|
||||
|
||||
// Draconic Roar deals 3 damage to target creature. If you revealed a Dragon card or controlled a Dragon as you cast Draconic Roar, Draconic Roar deals 3 damage to that creature's controller.
|
||||
this.getSpellAbility().addEffect(new DamageTargetEffect(3));
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ public class DragonlordsPrerogative extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{4}{U}{U}");
|
||||
|
||||
// As an additional cost to cast Dragonlord's Prerogative, you may reveal a Dragon card from your hand.
|
||||
this.getSpellAbility().addEffect(new InfoEffect("As an additional cost to cast {this}, you may reveal a Dragon card from your hand"));
|
||||
this.getSpellAbility().addEffect(new InfoEffect("as an additional cost to cast this spell, you may reveal a Dragon card from your hand"));
|
||||
|
||||
// If you revealed a Dragon card or controlled a Dragon as you cast Dragonlord's Prerogative, Dragonlord's Prerogative can't be countered.
|
||||
Condition condition = new DragonlordsPrerogativeCondition();
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ public class FoulTongueInvocation extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{B}");
|
||||
|
||||
// As an additional cost to cast Foul-Tongue Invocation, you may reveal a Dragon card from your hand.
|
||||
this.getSpellAbility().addEffect(new InfoEffect("As an additional cost to cast {this}, you may reveal a Dragon card from your hand"));
|
||||
this.getSpellAbility().addEffect(new InfoEffect("as an additional cost to cast this spell, you may reveal a Dragon card from your hand"));
|
||||
|
||||
// Target player sacrifices a creature. If you revealed a Dragon card or controlled a Dragon as you cast Foul-Tongue Invocation, you gain 4 life.
|
||||
this.getSpellAbility().addTarget(new TargetPlayer());
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ class InsidiousDreamsAdditionalCost extends VariableCostImpl {
|
|||
|
||||
InsidiousDreamsAdditionalCost() {
|
||||
super("cards to discard");
|
||||
this.text = "As an additional cost to cast {this}, discard X cards";
|
||||
this.text = "as an additional cost to cast this spell, discard X cards";
|
||||
}
|
||||
|
||||
InsidiousDreamsAdditionalCost(final InsidiousDreamsAdditionalCost cost) {
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ class NahirisWrathAdditionalCost extends VariableCostImpl {
|
|||
|
||||
NahirisWrathAdditionalCost() {
|
||||
super("cards to discard");
|
||||
this.text = "As an additional cost to cast {this}, discard X cards";
|
||||
this.text = "as an additional cost to cast this spell, discard X cards";
|
||||
}
|
||||
|
||||
NahirisWrathAdditionalCost(final NahirisWrathAdditionalCost cost) {
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ public class OratorOfOjutai extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// As an additional cost to cast Orator of Ojutai, you may reveal a Dragon card from your hand.
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new InfoEffect("As an additional cost to cast {this}, you may reveal a Dragon card from your hand")));
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new InfoEffect("as an additional cost to cast this spell, you may reveal a Dragon card from your hand")));
|
||||
|
||||
// When Orator of Ojutai enters the battlefield, if you revealed a Dragon card or controlled a Dragon as you cast Orator of Ojutai, draw a card.
|
||||
this.addAbility(new OratorOfOjutaiTriggeredAbility(new OratorOfOjutaiEffect()), new DragonOnTheBattlefieldWhileSpellWasCastWatcher());
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ public class RuthlessDisposal extends CardImpl {
|
|||
// As an additional cost to cast Ruthless Disposal, discard a card and sacrifice a creature.
|
||||
this.getSpellAbility().addCost(new DiscardTargetCost(new TargetCardInHand(new FilterCard("a card"))));
|
||||
Cost cost = new SacrificeTargetCost(new TargetControlledCreaturePermanent(FILTER_CONTROLLED_CREATURE_SHORT_TEXT));
|
||||
cost.setText("As an additional cost to cast {this}, sacrifice a creature");
|
||||
cost.setText("as an additional cost to cast this spell, sacrifice a creature");
|
||||
this.getSpellAbility().addCost(cost);
|
||||
|
||||
// Two target creatures each get -13/-13 until end of turn.
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ public class ScaleguardSentinels extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// As an additional cost to cast Scaleguard Sentinels, you may reveal a Dragon card from your hand.
|
||||
this.getSpellAbility().addEffect(new InfoEffect("As an additional cost to cast {this}, you may reveal a Dragon card from your hand"));
|
||||
this.getSpellAbility().addEffect(new InfoEffect("as an additional cost to cast this spell, you may reveal a Dragon card from your hand"));
|
||||
|
||||
// Scaleguard Sentinels enters the battlefield with a +1/+1 counter on it if you revealed a Dragon card or controlled a Dragon as you cast Scaleguard Sentinels.
|
||||
this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance(), true),
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ class ScorchedEarthRuleEffect extends OneShotEffect {
|
|||
|
||||
public ScorchedEarthRuleEffect() {
|
||||
super(Outcome.Benefit);
|
||||
this.staticText = "As an additional cost to cast {this}, discard X land cards";
|
||||
this.staticText = "as an additional cost to cast this spell, discard X land cards";
|
||||
}
|
||||
|
||||
public ScorchedEarthRuleEffect(final ScorchedEarthRuleEffect effect) {
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ class SickeningDreamsAdditionalCost extends VariableCostImpl {
|
|||
|
||||
SickeningDreamsAdditionalCost() {
|
||||
super("cards to discard");
|
||||
this.text = "As an additional cost to cast {this}, discard X cards";
|
||||
this.text = "as an additional cost to cast this spell, discard X cards";
|
||||
}
|
||||
|
||||
SickeningDreamsAdditionalCost(final SickeningDreamsAdditionalCost cost) {
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ public class SilumgarsScorn extends CardImpl {
|
|||
super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{U}{U}");
|
||||
|
||||
// As an additional cost to cast Silumgar's Scorn, you may reveal a Dragon card from your hand.
|
||||
this.getSpellAbility().addEffect(new InfoEffect("As an additional cost to cast {this}, you may reveal a Dragon card from your hand"));
|
||||
this.getSpellAbility().addEffect(new InfoEffect("as an additional cost to cast this spell, you may reveal a Dragon card from your hand"));
|
||||
|
||||
// Counter target spell unless its controller pays {1}. If you revealed a Dragon card or controlled a Dragon as you cast Silumgar's Scorn, counter that spell instead.
|
||||
this.getSpellAbility().addEffect(new SilumgarsScornCounterEffect());
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ class SkeletalScryingRuleEffect extends OneShotEffect {
|
|||
|
||||
public SkeletalScryingRuleEffect() {
|
||||
super(Outcome.Benefit);
|
||||
this.staticText = "As an additional cost to cast {this}, exile X cards from your graveyard";
|
||||
this.staticText = "as an additional cost to cast this spell, exile X cards from your graveyard";
|
||||
}
|
||||
|
||||
public SkeletalScryingRuleEffect(final SkeletalScryingRuleEffect effect) {
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ public class AbilitiesImpl<T extends Ability> extends ArrayList<T> implements Ab
|
|||
for (Cost cost : ability.getCosts()) {
|
||||
if (cost.getText() != null && !cost.getText().isEmpty()) {
|
||||
if (!cost.getText().startsWith("As an additional cost")) {
|
||||
sbRule.append("As an additional cost to cast {this}, ");
|
||||
sbRule.append("as an additional cost to cast this spell, ");
|
||||
}
|
||||
sbRule.append(cost.getText()).append(".<br>");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue