diff --git a/Mage.Sets/src/mage/cards/g/GnawingVermin.java b/Mage.Sets/src/mage/cards/g/GnawingVermin.java new file mode 100644 index 00000000000..265cadccae4 --- /dev/null +++ b/Mage.Sets/src/mage/cards/g/GnawingVermin.java @@ -0,0 +1,50 @@ +package mage.cards.g; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.DiesSourceTriggeredAbility; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.effects.common.MillCardsTargetEffect; +import mage.abilities.effects.common.continuous.BoostTargetEffect; +import mage.constants.SubType; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.StaticFilters; +import mage.target.TargetPlayer; +import mage.target.common.TargetCreaturePermanent; + +/** + * + * @author weirddan455 + */ +public final class GnawingVermin extends CardImpl { + + public GnawingVermin(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{B}"); + + this.subtype.add(SubType.RAT); + this.power = new MageInt(1); + this.toughness = new MageInt(1); + + // When Gnawing Vermin enters the battlefield, target player mills two cards. + Ability ability = new EntersBattlefieldTriggeredAbility(new MillCardsTargetEffect(2)); + ability.addTarget(new TargetPlayer()); + this.addAbility(ability); + + // When Gnawing Vermin dies, target creature you don't control gets -1/-1 until end of turn. + ability = new DiesSourceTriggeredAbility(new BoostTargetEffect(-1, -1)); + ability.addTarget(new TargetCreaturePermanent(StaticFilters.FILTER_CREATURE_YOU_DONT_CONTROL)); + this.addAbility(ability); + } + + private GnawingVermin(final GnawingVermin card) { + super(card); + } + + @Override + public GnawingVermin copy() { + return new GnawingVermin(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheBrothersWar.java b/Mage.Sets/src/mage/sets/TheBrothersWar.java index 4b40b6d3f90..9cf806b63f3 100644 --- a/Mage.Sets/src/mage/sets/TheBrothersWar.java +++ b/Mage.Sets/src/mage/sets/TheBrothersWar.java @@ -62,6 +62,7 @@ public final class TheBrothersWar extends ExpansionSet { cards.add(new SetCardInfo("Gaea's Courser", 181, Rarity.UNCOMMON, mage.cards.g.GaeasCourser.class)); cards.add(new SetCardInfo("Giant Growth", 183, Rarity.COMMON, mage.cards.g.GiantGrowth.class)); cards.add(new SetCardInfo("Gix's Caress", 96, Rarity.COMMON, mage.cards.g.GixsCaress.class)); + cards.add(new SetCardInfo("Gnawing Vermin", 101, Rarity.UNCOMMON, mage.cards.g.GnawingVermin.class)); cards.add(new SetCardInfo("Go for the Throat", 102, Rarity.UNCOMMON, mage.cards.g.GoForTheThroat.class)); cards.add(new SetCardInfo("Goblin Firebomb", 235, Rarity.COMMON, mage.cards.g.GoblinFirebomb.class)); cards.add(new SetCardInfo("Gruesome Realization", 103, Rarity.UNCOMMON, mage.cards.g.GruesomeRealization.class));