mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
[BRO] Implemented Gnawing Vermin
This commit is contained in:
parent
9bf085f55f
commit
0fbdea965d
2 changed files with 51 additions and 0 deletions
50
Mage.Sets/src/mage/cards/g/GnawingVermin.java
Normal file
50
Mage.Sets/src/mage/cards/g/GnawingVermin.java
Normal file
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue