text fixes and ability rule improvements

This commit is contained in:
xenohedron 2023-08-16 22:44:53 -04:00
parent a1e9e2f6a5
commit 64db75576e
7 changed files with 10 additions and 11 deletions

View file

@ -34,7 +34,7 @@ public final class SublimeArchangel extends CardImpl {
this.addAbility(new ExaltedAbility()); this.addAbility(new ExaltedAbility());
// Other creatures you control have exalted. // Other creatures you control have exalted.
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD,
new GainAbilityControlledEffect(new ExaltedAbility(), Duration.WhileOnBattlefield, StaticFilters.FILTER_PERMANENT_CREATURE, true))); new GainAbilityControlledEffect(new ExaltedAbility(), Duration.WhileOnBattlefield, StaticFilters.FILTER_PERMANENT_CREATURES, true)));
} }
private SublimeArchangel(final SublimeArchangel card) { private SublimeArchangel(final SublimeArchangel card) {

View file

@ -45,7 +45,7 @@ public final class VelaTheNightClad extends CardImpl {
this.addAbility(new SimpleStaticAbility( this.addAbility(new SimpleStaticAbility(
Zone.BATTLEFIELD, Zone.BATTLEFIELD,
new GainAbilityControlledEffect(IntimidateAbility.getInstance(), new GainAbilityControlledEffect(IntimidateAbility.getInstance(),
Duration.WhileOnBattlefield, StaticFilters.FILTER_PERMANENT_CREATURE, true))); Duration.WhileOnBattlefield, StaticFilters.FILTER_PERMANENT_CREATURES, true)));
// Whenever Vela the Night-Clad or another creature you control leaves the battlefield, each opponent loses 1 life. // Whenever Vela the Night-Clad or another creature you control leaves the battlefield, each opponent loses 1 life.
Ability ability = new ZoneChangeAllTriggeredAbility( Ability ability = new ZoneChangeAllTriggeredAbility(
Zone.BATTLEFIELD, Zone.BATTLEFIELD,

View file

@ -154,7 +154,7 @@ public class GainAbilityAllEffect extends ContinuousEffectImpl {
} }
if (quotes) { if (quotes) {
sb.append('"'); sb.append('"');
sb.append(CardUtil.getTextWithFirstCharUpperCase(ability.getRule())); sb.append(CardUtil.stripReminderText(CardUtil.getTextWithFirstCharUpperCase(ability.getRule())));
sb.append('"'); sb.append('"');
} else { } else {
sb.append(ability.getRule()); sb.append(ability.getRule());

View file

@ -12,6 +12,7 @@ import mage.filter.FilterPermanent;
import mage.filter.StaticFilters; import mage.filter.StaticFilters;
import mage.game.Game; import mage.game.Game;
import mage.game.permanent.Permanent; import mage.game.permanent.Permanent;
import mage.util.CardUtil;
import java.util.Iterator; import java.util.Iterator;
@ -123,7 +124,7 @@ public class GainAbilityControlledEffect extends ContinuousEffectImpl {
if (excludeSource) { if (excludeSource) {
sb.append("other "); sb.append("other ");
} }
String gainedAbility = ability.getRule(); String gainedAbility = CardUtil.stripReminderText(ability.getRule());
sb.append(filter.getMessage()).append(" you control "); sb.append(filter.getMessage()).append(" you control ");
if (duration == Duration.WhileOnBattlefield || duration == Duration.EndOfGame) { if (duration == Duration.WhileOnBattlefield || duration == Duration.EndOfGame) {
sb.append("have "); sb.append("have ");

View file

@ -21,7 +21,6 @@ import mage.players.Player;
import mage.target.common.TargetControlledPermanent; import mage.target.common.TargetControlledPermanent;
import mage.util.CardUtil; import mage.util.CardUtil;
import java.util.Iterator;
import java.util.Objects; import java.util.Objects;
import java.util.UUID; import java.util.UUID;
@ -63,8 +62,8 @@ public class ConspireAbility extends StaticAbility implements OptionalAdditional
} }
public String getReminder() { public String getReminder() {
return "as you cast this spell, you may tap two untapped creatures you control " + return "As you cast this spell, you may tap two untapped creatures you control " +
"that share a color with it. When you do, copy it" + message; "that share a color with it. When you do, copy it" + message + ".";
} }
} }
@ -132,8 +131,7 @@ public class ConspireAbility extends StaticAbility implements OptionalAdditional
return; return;
} }
ability.getAllEffects().setValue("ConspireActivation" + conspireId + addedById, true); ability.getAllEffects().setValue("ConspireActivation" + conspireId + addedById, true);
for (Iterator<Cost> it = ((Costs<Cost>) conspireCost).iterator(); it.hasNext(); ) { for (Cost cost : (Costs<Cost>) conspireCost) {
Cost cost = (Cost) it.next();
if (cost instanceof ManaCostsImpl) { if (cost instanceof ManaCostsImpl) {
ability.getManaCostsToPay().add((ManaCostsImpl<?>) cost.copy()); ability.getManaCostsToPay().add((ManaCostsImpl<?>) cost.copy());
} else { } else {

View file

@ -70,7 +70,7 @@ public class CrewAbility extends SimpleActivatedAbility {
@Override @Override
public String getRule() { public String getRule() {
return "Crew " + value + " <i>(Tap any number of creatures you control with total power " return "crew " + value + " <i>(Tap any number of creatures you control with total power "
+ value + " or more: This Vehicle becomes an artifact creature until end of turn.)</i>"; + value + " or more: This Vehicle becomes an artifact creature until end of turn.)</i>";
} }
} }

View file

@ -91,7 +91,7 @@ public class EvolveAbility extends EntersBattlefieldAllTriggeredAbility {
@Override @Override
public String getRule() { public String getRule() {
return "Evolve <i>(Whenever a creature enters the battlefield under your control, if that creature has greater power or toughness than this creature, put a +1/+1 counter on this creature.)</i>"; return "evolve <i>(Whenever a creature enters the battlefield under your control, if that creature has greater power or toughness than this creature, put a +1/+1 counter on this creature.)</i>";
} }
@Override @Override