Remove newline character from card text

This commit is contained in:
Steven Knipe 2025-06-19 23:48:46 -07:00
parent d0226dc0ea
commit 14c61caf39
6 changed files with 15 additions and 48 deletions

View file

@ -91,7 +91,7 @@ class BoobyTrapTriggeredAbility extends TriggeredAbilityImpl {
@Override @Override
public String getRule() { public String getRule() {
return "The chosen player reveals each card they draw.\n" + return "The chosen player reveals each card they draw.<br>" +
"When the chosen player draws the named card, sacrifice {this}. If you do, {this} deals 10 damage to that player."; "When the chosen player draws the named card, sacrifice {this}. If you do, {this} deals 10 damage to that player.";
} }
} }

View file

@ -7,7 +7,6 @@ import mage.abilities.effects.common.SacrificeEffect;
import mage.abilities.hint.common.MetalcraftHint; import mage.abilities.hint.common.MetalcraftHint;
import mage.cards.CardImpl; import mage.cards.CardImpl;
import mage.cards.CardSetInfo; import mage.cards.CardSetInfo;
import mage.constants.AbilityWord;
import mage.constants.CardType; import mage.constants.CardType;
import mage.constants.Outcome; import mage.constants.Outcome;
import mage.filter.common.FilterAttackingCreature; import mage.filter.common.FilterAttackingCreature;
@ -44,7 +43,7 @@ public final class DispenseJustice extends CardImpl {
class DispenseJusticeEffect extends OneShotEffect { class DispenseJusticeEffect extends OneShotEffect {
private static final String effectText = "Target player sacrifices an attacking creature.\r\n\r\n" private static final String effectText = "Target player sacrifices an attacking creature.<br>"
+ "<i>Metalcraft</i> &mdash; That player sacrifices two attacking creatures instead if you control three or more artifacts"; + "<i>Metalcraft</i> &mdash; That player sacrifices two attacking creatures instead if you control three or more artifacts";
private static final FilterAttackingCreature filter = new FilterAttackingCreature(); private static final FilterAttackingCreature filter = new FilterAttackingCreature();

View file

@ -3,12 +3,14 @@ package mage.cards.i;
import mage.abilities.Ability; import mage.abilities.Ability;
import mage.abilities.common.SimpleStaticAbility; import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.effects.ReplacementEffectImpl; import mage.abilities.effects.ReplacementEffectImpl;
import mage.abilities.keyword.EquipAbility; import mage.abilities.keyword.EquipAbility;
import mage.cards.CardImpl; import mage.cards.CardImpl;
import mage.cards.CardSetInfo; import mage.cards.CardSetInfo;
import mage.constants.*; import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.Outcome;
import mage.constants.SubType;
import mage.game.Game; import mage.game.Game;
import mage.game.events.DamageEvent; import mage.game.events.DamageEvent;
import mage.game.events.GameEvent; import mage.game.events.GameEvent;
@ -16,7 +18,6 @@ import mage.game.permanent.Permanent;
import mage.util.CardUtil; import mage.util.CardUtil;
import java.util.UUID; import java.util.UUID;
import mage.target.common.TargetControlledCreaturePermanent;
/** /**
* @author nantuko * @author nantuko
@ -32,7 +33,7 @@ public final class InquisitorsFlail extends CardImpl {
this.addAbility(new SimpleStaticAbility(new InquisitorsFlailEffect())); this.addAbility(new SimpleStaticAbility(new InquisitorsFlailEffect()));
// Equip {2} // Equip {2}
this.addAbility(new EquipAbility(Outcome.BoostCreature, new GenericManaCost(2), new TargetControlledCreaturePermanent(), false)); this.addAbility(new EquipAbility(2, false));
} }
private InquisitorsFlail(final InquisitorsFlail card) { private InquisitorsFlail(final InquisitorsFlail card) {
@ -49,7 +50,7 @@ class InquisitorsFlailEffect extends ReplacementEffectImpl {
InquisitorsFlailEffect() { InquisitorsFlailEffect() {
super(Duration.WhileOnBattlefield, Outcome.Damage); super(Duration.WhileOnBattlefield, Outcome.Damage);
staticText = "If equipped creature would deal combat damage, it deals double that damage instead. \n" staticText = "If equipped creature would deal combat damage, it deals double that damage instead.<br>"
+ "If another creature would deal combat damage to equipped creature, it deals double that damage to equipped creature instead"; + "If another creature would deal combat damage to equipped creature, it deals double that damage to equipped creature instead";
} }

View file

@ -47,7 +47,7 @@ class MoltenPsycheEffect extends OneShotEffect {
MoltenPsycheEffect() { MoltenPsycheEffect() {
super(Outcome.Neutral); super(Outcome.Neutral);
staticText = "Each player shuffles the cards from their hand into their library, then draws that many cards.\n" staticText = "Each player shuffles the cards from their hand into their library, then draws that many cards.<br>"
+ "<i>Metalcraft</i> &mdash; If you control three or more artifacts, {this} deals damage to each opponent equal to the number of cards that player has drawn this turn."; + "<i>Metalcraft</i> &mdash; If you control three or more artifacts, {this} deals damage to each opponent equal to the number of cards that player has drawn this turn.";
} }

View file

@ -55,9 +55,8 @@ class ParoxysmEffect extends OneShotEffect {
ParoxysmEffect() { ParoxysmEffect() {
super(Outcome.BoostCreature); super(Outcome.BoostCreature);
this.staticText = "that player reveals the top card of their library. \n" this.staticText = "that player reveals the top card of their library. If that card is a land card, "+
+ "If that card is a land card, destroy that creature. \n" "destroy that creature. Otherwise, it gets +3/+3 until end of turn.";
+ "Otherwise, it gets +3/+3 until end of turn.";
} }
private ParoxysmEffect(final ParoxysmEffect effect) { private ParoxysmEffect(final ParoxysmEffect effect) {

View file

@ -1,27 +1,21 @@
package mage.cards.s; package mage.cards.s;
import java.util.UUID;
import mage.MageObjectReference;
import mage.abilities.Ability;
import mage.abilities.condition.LockedInCondition; import mage.abilities.condition.LockedInCondition;
import mage.abilities.condition.common.KickedCondition; import mage.abilities.condition.common.KickedCondition;
import mage.abilities.decorator.ConditionalContinuousRuleModifyingEffect; import mage.abilities.decorator.ConditionalContinuousRuleModifyingEffect;
import mage.abilities.decorator.ConditionalOneShotEffect; import mage.abilities.decorator.ConditionalOneShotEffect;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.DamageTargetEffect; import mage.abilities.effects.common.DamageTargetEffect;
import mage.abilities.effects.common.ExileTargetIfDiesEffect; import mage.abilities.effects.common.ExileTargetIfDiesEffect;
import mage.abilities.effects.common.replacement.DiesReplacementEffect;
import mage.abilities.effects.common.ruleModifying.CantRegenerateTargetEffect; import mage.abilities.effects.common.ruleModifying.CantRegenerateTargetEffect;
import mage.abilities.keyword.KickerAbility; import mage.abilities.keyword.KickerAbility;
import mage.cards.CardImpl; import mage.cards.CardImpl;
import mage.cards.CardSetInfo; import mage.cards.CardSetInfo;
import mage.constants.CardType; import mage.constants.CardType;
import mage.constants.Duration; import mage.constants.Duration;
import mage.constants.Outcome;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.target.common.TargetAnyTarget; import mage.target.common.TargetAnyTarget;
import java.util.UUID;
/** /**
* *
* @author LoneFox * @author LoneFox
@ -37,8 +31,7 @@ public final class ScorchingLava extends CardImpl {
// that creature can't be regenerated this turn and if it would die this turn, exile it instead. // that creature can't be regenerated this turn and if it would die this turn, exile it instead.
this.getSpellAbility().addEffect(new DamageTargetEffect(2)); this.getSpellAbility().addEffect(new DamageTargetEffect(2));
this.getSpellAbility().addEffect(new ConditionalContinuousRuleModifyingEffect( this.getSpellAbility().addEffect(new ConditionalContinuousRuleModifyingEffect(
new CantRegenerateTargetEffect(Duration.EndOfTurn, "If Scorching Lava was kicked, " new CantRegenerateTargetEffect(Duration.EndOfTurn, "If {this} was kicked, that creature"),
+ "\n" + "that creature "),
new LockedInCondition(KickedCondition.ONCE))); new LockedInCondition(KickedCondition.ONCE)));
this.getSpellAbility().addEffect(new ConditionalOneShotEffect( this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
new ExileTargetIfDiesEffect(), new ExileTargetIfDiesEffect(),
@ -56,28 +49,3 @@ public final class ScorchingLava extends CardImpl {
return new ScorchingLava(this); return new ScorchingLava(this);
} }
} }
class ScorchingLavaEffect extends OneShotEffect {
ScorchingLavaEffect() {
super(Outcome.Exile);
}
private ScorchingLavaEffect(final ScorchingLavaEffect effect) {
super(effect);
}
@Override
public ScorchingLavaEffect copy() {
return new ScorchingLavaEffect(this);
}
@Override
public boolean apply(Game game, Ability source) {
Permanent targetCreature = game.getPermanent(getTargetPointer().getFirst(game, source));
if (targetCreature != null) {
game.addEffect(new DiesReplacementEffect(new MageObjectReference(targetCreature, game), Duration.EndOfTurn), source);
}
return true;
}
}