diff --git a/Mage.Sets/src/mage/cards/t/TrygonPrime.java b/Mage.Sets/src/mage/cards/t/TrygonPrime.java new file mode 100644 index 00000000000..41d41c3793d --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/TrygonPrime.java @@ -0,0 +1,59 @@ +package mage.cards.t; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.AttacksTriggeredAbility; +import mage.abilities.effects.common.combat.CantBeBlockedTargetEffect; +import mage.abilities.effects.common.counter.AddCountersSourceEffect; +import mage.abilities.effects.common.counter.AddCountersTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.counters.CounterType; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterAttackingCreature; +import mage.filter.predicate.mageobject.AnotherPredicate; +import mage.target.TargetPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class TrygonPrime extends CardImpl { + + private static final FilterPermanent filter = new FilterAttackingCreature("other attacking creature"); + + static { + filter.add(AnotherPredicate.instance); + } + + public TrygonPrime(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G}{U}"); + + this.subtype.add(SubType.TYRANID); + this.power = new MageInt(4); + this.toughness = new MageInt(4); + + // Subterranean Assault -- Whenever Trygon Prime attacks, put a +1/+1 counter on it and a +1/+1 counter on up to one other target attacking creature. That creature can't be blocked this turn. + Ability ability = new AttacksTriggeredAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()) + .setText("put a +1/+1 counter on it")); + ability.addEffect(new AddCountersTargetEffect(CounterType.P1P1.createInstance()) + .setText("and a +1/+1 counter on up to one other target attacking creature")); + ability.addEffect(new CantBeBlockedTargetEffect(Duration.EndOfTurn) + .setText("That creature can't be blocked this turn")); + ability.addTarget(new TargetPermanent(0, 1, filter)); + this.addAbility(ability.withFlavorWord("Subterranean Assault")); + } + + private TrygonPrime(final TrygonPrime card) { + super(card); + } + + @Override + public TrygonPrime copy() { + return new TrygonPrime(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Warhammer40000.java b/Mage.Sets/src/mage/sets/Warhammer40000.java index 5c1065e3f22..f711369bb80 100644 --- a/Mage.Sets/src/mage/sets/Warhammer40000.java +++ b/Mage.Sets/src/mage/sets/Warhammer40000.java @@ -70,6 +70,7 @@ public final class Warhammer40000 extends ExpansionSet { cards.add(new SetCardInfo("Temple of Mystery", 299, Rarity.RARE, mage.cards.t.TempleOfMystery.class)); cards.add(new SetCardInfo("The Swarmlord", 4, Rarity.MYTHIC, mage.cards.t.TheSwarmlord.class)); cards.add(new SetCardInfo("Thornwood Falls", 302, Rarity.COMMON, mage.cards.t.ThornwoodFalls.class)); + cards.add(new SetCardInfo("Trygon Prime", 143, Rarity.UNCOMMON, mage.cards.t.TrygonPrime.class)); cards.add(new SetCardInfo("Tyranid Prime", 145, Rarity.RARE, mage.cards.t.TyranidPrime.class)); cards.add(new SetCardInfo("Unclaimed Territory", 304, Rarity.UNCOMMON, mage.cards.u.UnclaimedTerritory.class)); cards.add(new SetCardInfo("Venomthrope", 147, Rarity.UNCOMMON, mage.cards.v.Venomthrope.class));