1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-03-31 01:07:39 -09:00

a few more exile from graveyard fixes

This commit is contained in:
Evan Kranzler 2021-11-14 11:10:23 -05:00
parent 4a99b7689f
commit 7b184a76fa
11 changed files with 20 additions and 18 deletions

View file

@ -48,7 +48,7 @@ class AuthorOfShadowsEffect extends OneShotEffect {
AuthorOfShadowsEffect() {
super(Outcome.Benefit);
staticText = "exile all cards from all opponents' graveyards. Choose a nonland card exiled this way. " +
staticText = "exile all opponents' graveyards. Choose a nonland card exiled this way. " +
"You may cast that card for as long as it remains exiled, and you may spend mana " +
"as though it were mana of any color to cast that spell";
}

View file

@ -78,6 +78,6 @@ class BurnAwayDelayedTriggeredAbility extends DelayedTriggeredAbility {
@Override
public String getRule() {
return "When that creature dies this turn, exile all cards from its controller's graveyard.";
return "When that creature dies this turn, exile its controller's graveyard.";
}
}

View file

@ -20,7 +20,7 @@ public final class GoBlank extends CardImpl {
// Target player discards two cards. Then exile all cards from that player's graveyard.
this.getSpellAbility().addEffect(new DiscardTargetEffect(2));
this.getSpellAbility().addEffect(new ExileGraveyardAllTargetPlayerEffect()
.setText("Then exile all cards from that player's graveyard"));
.setText("Then exile that player's graveyard"));
this.getSpellAbility().addTarget(new TargetPlayer());
}

View file

@ -56,7 +56,7 @@ class HedonistsTroveExileEffect extends OneShotEffect {
HedonistsTroveExileEffect() {
super(Outcome.Exile);
staticText = "exile all cards from target opponent's graveyard";
staticText = "exile target opponent's graveyard";
}
private HedonistsTroveExileEffect(final HedonistsTroveExileEffect effect) {

View file

@ -36,7 +36,7 @@ public final class KayasGuile extends CardImpl {
// Exile all cards from each opponent's graveyard.
this.getSpellAbility().addMode(new Mode(new ExileGraveyardAllPlayersEffect(
StaticFilters.FILTER_CARD_CARDS, TargetController.OPPONENT
).setText("exile all cards from each opponent's graveyard")));
)));
// Create a 1/1 white and black Spirit creature token with flying.
this.getSpellAbility().addMode(new Mode(new CreateTokenEffect(new WhiteBlackSpiritToken())));

View file

@ -53,7 +53,7 @@ class MnemonicBetrayalExileEffect extends OneShotEffect {
public MnemonicBetrayalExileEffect() {
super(Outcome.Benefit);
this.staticText = "exile all cards from all opponents' graveyards. " +
this.staticText = "exile all opponents' graveyards. " +
"You may cast spells from among those cards this turn, " +
"and you may spend mana as though it were mana of any type to cast those spells. " +
"At the beginning of the next end step, if any of those cards remain exiled, " +

View file

@ -1,7 +1,5 @@
package mage.cards.n;
import java.util.UUID;
import mage.abilities.common.DiesSourceTriggeredAbility;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.SacrificeSourceCost;
@ -13,25 +11,30 @@ import mage.abilities.effects.common.ExileGraveyardAllTargetPlayerEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Zone;
import mage.target.TargetPlayer;
import java.util.UUID;
/**
*
* @author North
*/
public final class NihilSpellbomb extends CardImpl {
public NihilSpellbomb(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{1}");
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}");
// {T}, Sacrifice Nihil Spellbomb: Exile all cards from target player's graveyard.
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileGraveyardAllTargetPlayerEffect(), new TapSourceCost());
SimpleActivatedAbility ability = new SimpleActivatedAbility(
new ExileGraveyardAllTargetPlayerEffect(), new TapSourceCost()
);
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetPlayer());
this.addAbility(ability);
// When Nihil Spellbomb is put into a graveyard from the battlefield, you may pay {B}. If you do, draw a card.
this.addAbility(new DiesSourceTriggeredAbility(new DoIfCostPaid(new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{B}")), false));
this.addAbility(new DiesSourceTriggeredAbility(new DoIfCostPaid(
new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{B}")
), false).setTriggerPhrase("When {this} is put into a graveyard from the battlefield, "));
}
private NihilSpellbomb(final NihilSpellbomb card) {

View file

@ -68,7 +68,7 @@ class SzatsWillEffect extends OneShotEffect {
SzatsWillEffect() {
super(Outcome.Benefit);
staticText = "exile all cards from all opponents' graveyards, "
staticText = "exile all opponents' graveyards, "
+ "then create X 0/1 black Thrull creature tokens, "
+ "where X is the greatest power among creature cards exiled this way";
}

View file

@ -335,7 +335,7 @@ class ExileAllCardsFromAllGraveyards extends OneShotEffect {
public ExileAllCardsFromAllGraveyards() {
super(Outcome.Benefit);
this.staticText = "Exile all cards from all graveyards. Add {R}{R}{R}";
this.staticText = "Exile all graveyards. Add {R}{R}{R}";
}
public ExileAllCardsFromAllGraveyards(final ExileAllCardsFromAllGraveyards effect) {

View file

@ -24,7 +24,6 @@ public class ExileGraveyardAllPlayersEffect extends OneShotEffect {
public ExileGraveyardAllPlayersEffect() {
this(StaticFilters.FILTER_CARD_CARDS);
this.staticText = "exile all graveyards";
}
public ExileGraveyardAllPlayersEffect(FilterCard filter) {
@ -35,7 +34,7 @@ public class ExileGraveyardAllPlayersEffect extends OneShotEffect {
super(Outcome.Exile);
this.filter = filter;
this.targetController = targetController;
staticText = "exile all " + filter.getMessage() + " from all "
staticText = "exile all " + (filter.getMessage().equals("cards") ? "" : filter.getMessage() + " from all ")
+ (targetController.equals(TargetController.OPPONENT) ? "opponents' " : "")
+ "graveyards";
}

View file

@ -45,7 +45,7 @@ public class GetEmblemEffect extends OneShotEffect {
public String getText() {
StringBuilder sb = new StringBuilder();
sb.append("You get an emblem with \"");
sb.append("you get an emblem with \"");
List<String> rules = emblem.getAbilities().getRules(null);
if (rules.size() == 1) {
for (String s : rules) {