mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
fixed a few more cards which are missing ability text
This commit is contained in:
parent
0f1375ca60
commit
59d718f49e
6 changed files with 27 additions and 22 deletions
|
|
@ -53,11 +53,11 @@ class PhyrexianHydraEffect extends PreventionEffectImpl {
|
||||||
|
|
||||||
public PhyrexianHydraEffect() {
|
public PhyrexianHydraEffect() {
|
||||||
super(Duration.WhileOnBattlefield);
|
super(Duration.WhileOnBattlefield);
|
||||||
|
staticText = "If damage would be dealt to {this}, prevent that damage. Put a -1/-1 counter on {this} for each 1 damage prevented this way";
|
||||||
}
|
}
|
||||||
|
|
||||||
public PhyrexianHydraEffect(final PhyrexianHydraEffect effect) {
|
public PhyrexianHydraEffect(final PhyrexianHydraEffect effect) {
|
||||||
super(effect);
|
super(effect);
|
||||||
staticText = "If damage would be dealt to {this}, prevent that damage. Put a -1/-1 counter on {this} for each 1 damage prevented this way";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ public final class Recover extends CardImpl {
|
||||||
this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(StaticFilters.FILTER_CARD_CREATURE_YOUR_GRAVEYARD));
|
this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(StaticFilters.FILTER_CARD_CREATURE_YOUR_GRAVEYARD));
|
||||||
this.getSpellAbility().addEffect(new ReturnFromGraveyardToHandTargetEffect());
|
this.getSpellAbility().addEffect(new ReturnFromGraveyardToHandTargetEffect());
|
||||||
// Draw a card.
|
// Draw a card.
|
||||||
this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1).setText("<br>"));
|
this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1).concatBy("<br>"));
|
||||||
}
|
}
|
||||||
|
|
||||||
private Recover(final Recover card) {
|
private Recover(final Recover card) {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
|
|
||||||
package mage.cards.s;
|
package mage.cards.s;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.common.SimpleActivatedAbility;
|
import mage.abilities.common.SimpleActivatedAbility;
|
||||||
|
|
@ -15,12 +13,7 @@ import mage.abilities.keyword.FlyingAbility;
|
||||||
import mage.cards.Card;
|
import mage.cards.Card;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.*;
|
||||||
import mage.constants.SubType;
|
|
||||||
import mage.constants.Duration;
|
|
||||||
import mage.constants.Outcome;
|
|
||||||
import mage.constants.SuperType;
|
|
||||||
import mage.constants.Zone;
|
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.common.FilterLandCard;
|
import mage.filter.common.FilterLandCard;
|
||||||
import mage.filter.predicate.mageobject.AbilityPredicate;
|
import mage.filter.predicate.mageobject.AbilityPredicate;
|
||||||
|
|
@ -28,13 +21,15 @@ import mage.game.Game;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
import mage.target.common.TargetCreaturePermanent;
|
import mage.target.common.TargetCreaturePermanent;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @author LevelX2 & L_J
|
* @author LevelX2 & L_J
|
||||||
*/
|
*/
|
||||||
public final class StormElemental extends CardImpl {
|
public final class StormElemental extends CardImpl {
|
||||||
|
|
||||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("creature with flying");
|
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("creature with flying");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new AbilityPredicate(FlyingAbility.class));
|
filter.add(new AbilityPredicate(FlyingAbility.class));
|
||||||
}
|
}
|
||||||
|
|
@ -45,6 +40,9 @@ public final class StormElemental extends CardImpl {
|
||||||
this.power = new MageInt(3);
|
this.power = new MageInt(3);
|
||||||
this.toughness = new MageInt(4);
|
this.toughness = new MageInt(4);
|
||||||
|
|
||||||
|
// Flying
|
||||||
|
this.addAbility(FlyingAbility.getInstance());
|
||||||
|
|
||||||
// {U}, Exile the top card of your library: Tap target creature with flying.
|
// {U}, Exile the top card of your library: Tap target creature with flying.
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl("{U}"));
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl("{U}"));
|
||||||
ability.addCost(new ExileTopCardLibraryCost());
|
ability.addCost(new ExileTopCardLibraryCost());
|
||||||
|
|
@ -70,6 +68,7 @@ public final class StormElemental extends CardImpl {
|
||||||
class StormElementalEffect extends OneShotEffect {
|
class StormElementalEffect extends OneShotEffect {
|
||||||
|
|
||||||
private static final FilterLandCard filter = new FilterLandCard("snow land");
|
private static final FilterLandCard filter = new FilterLandCard("snow land");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(SuperType.SNOW.getPredicate());
|
filter.add(SuperType.SNOW.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,13 @@
|
||||||
|
|
||||||
package mage.cards.s;
|
package mage.cards.s;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
import mage.abilities.common.SimpleStaticAbility;
|
import mage.abilities.common.SimpleStaticAbility;
|
||||||
import mage.abilities.condition.common.SpellMasteryCondition;
|
import mage.abilities.condition.common.SpellMasteryCondition;
|
||||||
import mage.abilities.decorator.ConditionalAsThoughEffect;
|
import mage.abilities.decorator.ConditionalAsThoughEffect;
|
||||||
import mage.abilities.effects.AsThoughEffect;
|
|
||||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||||
import mage.abilities.effects.common.continuous.CastAsThoughItHadFlashSourceEffect;
|
import mage.abilities.effects.common.continuous.CastAsThoughItHadFlashSourceEffect;
|
||||||
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.Duration;
|
import mage.constants.Duration;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
|
|
@ -17,8 +15,9 @@ import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.predicate.permanent.TappedPredicate;
|
import mage.filter.predicate.permanent.TappedPredicate;
|
||||||
import mage.target.common.TargetCreaturePermanent;
|
import mage.target.common.TargetCreaturePermanent;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @author LevelX2
|
* @author LevelX2
|
||||||
*/
|
*/
|
||||||
public final class SwiftReckoning extends CardImpl {
|
public final class SwiftReckoning extends CardImpl {
|
||||||
|
|
@ -33,10 +32,14 @@ public final class SwiftReckoning extends CardImpl {
|
||||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{W}");
|
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{W}");
|
||||||
|
|
||||||
// <i>Spell mastery</i> — If there are two or more instant and/or sorcery cards in your graveyard, you may cast Swift Reckoning as though it had flash.
|
// <i>Spell mastery</i> — If there are two or more instant and/or sorcery cards in your graveyard, you may cast Swift Reckoning as though it had flash.
|
||||||
AsThoughEffect effect = new CastAsThoughItHadFlashSourceEffect(Duration.EndOfGame);
|
this.addAbility(new SimpleStaticAbility(
|
||||||
effect.setText("<i>Spell mastery</i> — If there are two or more instant and/or sorcery cards in your graveyard, you may cast {this} as though it had flash");
|
Zone.ALL,
|
||||||
this.addAbility(new SimpleStaticAbility(Zone.ALL, new ConditionalAsThoughEffect(effect,
|
new ConditionalAsThoughEffect(
|
||||||
SpellMasteryCondition.instance)));
|
new CastAsThoughItHadFlashSourceEffect(Duration.EndOfGame), SpellMasteryCondition.instance
|
||||||
|
).setText("If there are two or more instant and/or sorcery cards in your graveyard, " +
|
||||||
|
"you may cast {this} as though it had flash")
|
||||||
|
).setAbilityWord(AbilityWord.SPELL_MASTERY));
|
||||||
|
|
||||||
// Destroy target tapped creature.
|
// Destroy target tapped creature.
|
||||||
this.getSpellAbility().addEffect(new DestroyTargetEffect());
|
this.getSpellAbility().addEffect(new DestroyTargetEffect());
|
||||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter));
|
this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter));
|
||||||
|
|
|
||||||
|
|
@ -96,11 +96,11 @@ class UnbreathingHordeEffect2 extends PreventionEffectImpl {
|
||||||
|
|
||||||
public UnbreathingHordeEffect2() {
|
public UnbreathingHordeEffect2() {
|
||||||
super(Duration.WhileOnBattlefield);
|
super(Duration.WhileOnBattlefield);
|
||||||
|
staticText = "If damage would be dealt to {this}, prevent that damage and remove a +1/+1 counter from it";
|
||||||
}
|
}
|
||||||
|
|
||||||
public UnbreathingHordeEffect2(final UnbreathingHordeEffect2 effect) {
|
public UnbreathingHordeEffect2(final UnbreathingHordeEffect2 effect) {
|
||||||
super(effect);
|
super(effect);
|
||||||
staticText = "If damage would be dealt to {this}, prevent that damage and remove a +1/+1 counter from it";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -1659,6 +1659,9 @@ public class VerifyCardDataTest {
|
||||||
newStr += "{T}: Add {" + c + "}.\n";
|
newStr += "{T}: Add {" + c + "}.\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!newStr.isEmpty()) {
|
||||||
|
newStr = newStr.substring(0, newStr.length() - 1);
|
||||||
|
}
|
||||||
refText = refText.replace(s, newStr);
|
refText = refText.replace(s, newStr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue