mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
[OTJ] Implement Rise of the Varmints
This commit is contained in:
parent
9b7f3b7675
commit
8ffaaedaf3
4 changed files with 73 additions and 0 deletions
42
Mage.Sets/src/mage/cards/r/RiseOfTheVarmints.java
Normal file
42
Mage.Sets/src/mage/cards/r/RiseOfTheVarmints.java
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import mage.abilities.dynamicvalue.common.CardsInControllerGraveyardCount;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.keyword.PlotAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.game.permanent.token.VarmintToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class RiseOfTheVarmints extends CardImpl {
|
||||
|
||||
public RiseOfTheVarmints(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{G}");
|
||||
|
||||
|
||||
// Create X 2/1 green Varmint creature tokens, where X is the number of creature cards in your graveyard.
|
||||
this.getSpellAbility().addEffect(new CreateTokenEffect(
|
||||
new VarmintToken(),
|
||||
new CardsInControllerGraveyardCount(StaticFilters.FILTER_CARD_CREATURE)
|
||||
));
|
||||
|
||||
// Plot {2}{G}
|
||||
this.addAbility(new PlotAbility("{2}{G}"));
|
||||
|
||||
}
|
||||
|
||||
private RiseOfTheVarmints(final RiseOfTheVarmints card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RiseOfTheVarmints copy() {
|
||||
return new RiseOfTheVarmints(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -99,6 +99,7 @@ public final class OutlawsOfThunderJunction extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Reckless Lackey", 140, Rarity.COMMON, mage.cards.r.RecklessLackey.class));
|
||||
cards.add(new SetCardInfo("Redrock Sentinel", 247, Rarity.UNCOMMON, mage.cards.r.RedrockSentinel.class));
|
||||
cards.add(new SetCardInfo("Resilient Roadrunner", 141, Rarity.UNCOMMON, mage.cards.r.ResilientRoadrunner.class));
|
||||
cards.add(new SetCardInfo("Rise of the Varmints", 179, Rarity.UNCOMMON, mage.cards.r.RiseOfTheVarmints.class));
|
||||
cards.add(new SetCardInfo("Ruthless Lawbringer", 229, Rarity.UNCOMMON, mage.cards.r.RuthlessLawbringer.class));
|
||||
cards.add(new SetCardInfo("Scorching Shot", 145, Rarity.UNCOMMON, mage.cards.s.ScorchingShot.class));
|
||||
cards.add(new SetCardInfo("Shackle Slinger", 65, Rarity.UNCOMMON, mage.cards.s.ShackleSlinger.class));
|
||||
|
|
|
|||
|
|
@ -408,6 +408,7 @@ public enum SubType {
|
|||
UNICORN("Unicorn", SubTypeSet.CreatureType),
|
||||
// V
|
||||
VAMPIRE("Vampire", SubTypeSet.CreatureType),
|
||||
VARMINT("Varmint", SubTypeSet.CreatureType),
|
||||
VEDALKEN("Vedalken", SubTypeSet.CreatureType),
|
||||
VIASHINO("Viashino", SubTypeSet.CreatureType),
|
||||
VILLAIN("Villain", SubTypeSet.CreatureType, true), // Unstable
|
||||
|
|
|
|||
|
|
@ -0,0 +1,29 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class VarmintToken extends TokenImpl {
|
||||
|
||||
public VarmintToken() {
|
||||
super("Varmint Token", "2/1 green Varmint creature token");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setGreen(true);
|
||||
subtype.add(SubType.VARMINT);
|
||||
power = new MageInt(2);
|
||||
toughness = new MageInt(1);
|
||||
}
|
||||
|
||||
private VarmintToken(final VarmintToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VarmintToken copy() {
|
||||
return new VarmintToken(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue