mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
[VOW] Implemented Rural Recruit
This commit is contained in:
parent
b5b6c837f1
commit
12588ea40b
3 changed files with 72 additions and 0 deletions
43
Mage.Sets/src/mage/cards/r/RuralRecruit.java
Normal file
43
Mage.Sets/src/mage/cards/r/RuralRecruit.java
Normal file
|
@ -0,0 +1,43 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.keyword.TrainingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.game.permanent.token.Boar3Token;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class RuralRecruit extends CardImpl {
|
||||
|
||||
public RuralRecruit(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{G}");
|
||||
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.PEASANT);
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// Training
|
||||
this.addAbility(new TrainingAbility());
|
||||
|
||||
// When Rural Recruit enters the battlefield, create a 3/1 Boar creature token.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new Boar3Token())));
|
||||
}
|
||||
|
||||
private RuralRecruit(final RuralRecruit card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RuralRecruit copy() {
|
||||
return new RuralRecruit(this);
|
||||
}
|
||||
}
|
|
@ -183,6 +183,7 @@ public final class InnistradCrimsonVow extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Riphook Raider", 203, Rarity.COMMON, mage.cards.r.RiphookRaider.class));
|
||||
cards.add(new SetCardInfo("Rot-Tide Gargantua", 129, Rarity.COMMON, mage.cards.r.RotTideGargantua.class));
|
||||
cards.add(new SetCardInfo("Runebound Wolf", 176, Rarity.UNCOMMON, mage.cards.r.RuneboundWolf.class));
|
||||
cards.add(new SetCardInfo("Rural Recruit", 216, Rarity.COMMON, mage.cards.r.RuralRecruit.class));
|
||||
cards.add(new SetCardInfo("Sanctify", 33, Rarity.COMMON, mage.cards.s.Sanctify.class));
|
||||
cards.add(new SetCardInfo("Sanguine Statuette", 177, Rarity.UNCOMMON, mage.cards.s.SanguineStatuette.class));
|
||||
cards.add(new SetCardInfo("Savage Packmate", 234, Rarity.UNCOMMON, mage.cards.s.SavagePackmate.class));
|
||||
|
|
28
Mage/src/main/java/mage/game/permanent/token/Boar3Token.java
Normal file
28
Mage/src/main/java/mage/game/permanent/token/Boar3Token.java
Normal file
|
@ -0,0 +1,28 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class Boar3Token extends TokenImpl {
|
||||
|
||||
public Boar3Token() {
|
||||
super("Boar", "3/1 green Boar creature token");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setGreen(true);
|
||||
subtype.add(SubType.BOAR);
|
||||
power = new MageInt(3);
|
||||
toughness = new MageInt(1);
|
||||
}
|
||||
|
||||
public Boar3Token(final Boar3Token token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public Boar3Token copy() {
|
||||
return new Boar3Token(this);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue