mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
[LTR] Implement Brandywine Farmer
This commit is contained in:
parent
ca981827ab
commit
62cc1b605c
2 changed files with 40 additions and 0 deletions
39
Mage.Sets/src/mage/cards/b/BrandywineFarmer.java
Normal file
39
Mage.Sets/src/mage/cards/b/BrandywineFarmer.java
Normal file
|
@ -0,0 +1,39 @@
|
|||
package mage.cards.b;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.EntersBattlefieldOrLeavesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.game.permanent.token.FoodToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class BrandywineFarmer extends CardImpl {
|
||||
|
||||
public BrandywineFarmer(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G}");
|
||||
|
||||
this.subtype.add(SubType.HALFLING);
|
||||
this.subtype.add(SubType.PEASANT);
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// When Brandywine Farmer enters or leaves the battlefield, create a Food token.
|
||||
this.addAbility(new EntersBattlefieldOrLeavesSourceTriggeredAbility(new CreateTokenEffect(new FoodToken()), false));
|
||||
}
|
||||
|
||||
private BrandywineFarmer(final BrandywineFarmer card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BrandywineFarmer copy() {
|
||||
return new BrandywineFarmer(this);
|
||||
}
|
||||
}
|
|
@ -33,6 +33,7 @@ public final class TheLordOfTheRingsTalesOfMiddleEarth extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Bombadil's Song", 154, Rarity.COMMON, mage.cards.b.BombadilsSong.class));
|
||||
cards.add(new SetCardInfo("Book of Mazarbul", 116, Rarity.UNCOMMON, mage.cards.b.BookOfMazarbul.class));
|
||||
cards.add(new SetCardInfo("Borne Upon a Wind", 44, Rarity.RARE, mage.cards.b.BorneUponAWind.class));
|
||||
cards.add(new SetCardInfo("Brandywine Farmer", 155, Rarity.COMMON, mage.cards.b.BrandywineFarmer.class));
|
||||
cards.add(new SetCardInfo("Butterbur, Bree Innkeeper", 197, Rarity.UNCOMMON, mage.cards.b.ButterburBreeInnkeeper.class));
|
||||
cards.add(new SetCardInfo("Call of the Ring", 79, Rarity.RARE, mage.cards.c.CallOfTheRing.class));
|
||||
cards.add(new SetCardInfo("Captain of Umbar", 45, Rarity.COMMON, mage.cards.c.CaptainOfUmbar.class));
|
||||
|
|
Loading…
Reference in a new issue