diff --git a/Mage.Sets/src/mage/cards/t/ThryxTheSuddenStorm.java b/Mage.Sets/src/mage/cards/t/ThryxTheSuddenStorm.java new file mode 100644 index 00000000000..a975fca77c5 --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/ThryxTheSuddenStorm.java @@ -0,0 +1,65 @@ +package mage.cards.t; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.common.CantBeCounteredControlledEffect; +import mage.abilities.effects.common.cost.SpellsCostReductionControllerEffect; +import mage.abilities.keyword.FlashAbility; +import mage.abilities.keyword.FlyingAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.*; +import mage.filter.FilterCard; +import mage.filter.FilterSpell; +import mage.filter.predicate.Predicate; +import mage.filter.predicate.mageobject.ConvertedManaCostPredicate; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ThryxTheSuddenStorm extends CardImpl { + + private static final FilterCard filter = new FilterCard(); + private static final FilterSpell filter2 = new FilterSpell(); + + static { + Predicate predicate = new ConvertedManaCostPredicate(ComparisonType.MORE_THAN, 4); + filter.add(predicate); + filter2.add(predicate); + } + + public ThryxTheSuddenStorm(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{U}{U}"); + + this.addSuperType(SuperType.LEGENDARY); + this.subtype.add(SubType.ELEMENTAL); + this.subtype.add(SubType.GIANT); + this.power = new MageInt(4); + this.toughness = new MageInt(5); + + // Flash + this.addAbility(FlashAbility.getInstance()); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // Spells you cast with converted mana cost 5 or greater cost {1} less to cast and can't be countered. + Ability ability = new SimpleStaticAbility(new SpellsCostReductionControllerEffect(filter, 1) + .setText("spells you cast with converted mana cost 5 or greater cost {1} less to cast")); + ability.addEffect(new CantBeCounteredControlledEffect( + filter2, null, Duration.WhileOnBattlefield + ).setText("and can't be countered")); + } + + private ThryxTheSuddenStorm(final ThryxTheSuddenStorm card) { + super(card); + } + + @Override + public ThryxTheSuddenStorm copy() { + return new ThryxTheSuddenStorm(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java index e24481e32d2..ac95e4a1c9e 100644 --- a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java +++ b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java @@ -138,6 +138,7 @@ public final class TherosBeyondDeath extends ExpansionSet { cards.add(new SetCardInfo("The Birth of Meletis", 5, Rarity.UNCOMMON, mage.cards.t.TheBirthOfMeletis.class)); cards.add(new SetCardInfo("The Triumph of Anax", 160, Rarity.UNCOMMON, mage.cards.t.TheTriumphOfAnax.class)); cards.add(new SetCardInfo("Thirst for Meaning", 74, Rarity.COMMON, mage.cards.t.ThirstForMeaning.class)); + cards.add(new SetCardInfo("Thryx, the Sudden Storm", 76, Rarity.RARE, mage.cards.t.ThryxTheSuddenStorm.class)); cards.add(new SetCardInfo("Towering-Wave Mystic", 77, Rarity.COMMON, mage.cards.t.ToweringWaveMystic.class)); cards.add(new SetCardInfo("Treacherous Blessing", 316, Rarity.RARE, mage.cards.t.TreacherousBlessing.class)); cards.add(new SetCardInfo("Treeshaker Chimera", 297, Rarity.RARE, mage.cards.t.TreeshakerChimera.class));