mirror of
https://github.com/correl/mage.git
synced 2024-11-24 19:19:56 +00:00
[LTR] Implement Generous Ent
This commit is contained in:
parent
c5985ef9b2
commit
5e6998a725
2 changed files with 48 additions and 0 deletions
47
Mage.Sets/src/mage/cards/g/GenerousEnt.java
Normal file
47
Mage.Sets/src/mage/cards/g/GenerousEnt.java
Normal file
|
@ -0,0 +1,47 @@
|
|||
package mage.cards.g;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.keyword.ForestcyclingAbility;
|
||||
import mage.abilities.keyword.ReachAbility;
|
||||
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 GenerousEnt extends CardImpl {
|
||||
|
||||
public GenerousEnt(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{5}{G}");
|
||||
|
||||
this.subtype.add(SubType.TREEFOLK);
|
||||
this.power = new MageInt(5);
|
||||
this.toughness = new MageInt(7);
|
||||
|
||||
// Reach
|
||||
this.addAbility(ReachAbility.getInstance());
|
||||
|
||||
// When Generous Ent enters the battlefield, create a Food token.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new FoodToken())));
|
||||
|
||||
// Forestcycling {1}
|
||||
this.addAbility(new ForestcyclingAbility(new ManaCostsImpl<>("{1}")));
|
||||
}
|
||||
|
||||
private GenerousEnt(final GenerousEnt card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GenerousEnt copy() {
|
||||
return new GenerousEnt(this);
|
||||
}
|
||||
}
|
|
@ -32,6 +32,7 @@ public final class TheLordOfTheRingsTalesOfMiddleEarth extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Galadriel, Gift-Giver", 296, Rarity.RARE, mage.cards.g.GaladrielGiftGiver.class));
|
||||
cards.add(new SetCardInfo("Gandalf the Grey", 207, Rarity.RARE, mage.cards.g.GandalfTheGrey.class));
|
||||
cards.add(new SetCardInfo("Gandalf, Friend of the Shire", 50, Rarity.UNCOMMON, mage.cards.g.GandalfFriendOfTheShire.class));
|
||||
cards.add(new SetCardInfo("Generous Ent", 169, Rarity.COMMON, mage.cards.g.GenerousEnt.class));
|
||||
cards.add(new SetCardInfo("Goblin Assailant", 295, Rarity.COMMON, mage.cards.g.GoblinAssailant.class));
|
||||
cards.add(new SetCardInfo("Gollum, Patient Plotter", 84, Rarity.UNCOMMON, mage.cards.g.GollumPatientPlotter.class));
|
||||
cards.add(new SetCardInfo("Gothmog, Morgul Lieutenant", 87, Rarity.UNCOMMON, mage.cards.g.GothmogMorgulLieutenant.class));
|
||||
|
|
Loading…
Reference in a new issue