[WOE] Implement Gingerbread Hunter (#10975)

This commit is contained in:
Susucre 2023-08-24 14:35:11 +02:00 committed by GitHub
parent dfb06fb330
commit eb622f4ead
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,45 @@
package mage.cards.g;
import mage.MageInt;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.cards.AdventureCard;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.game.permanent.token.FoodToken;
import mage.target.common.TargetCreaturePermanent;
import java.util.UUID;
/**
* @author Susucr
*/
public final class GingerbreadHunter extends AdventureCard {
public GingerbreadHunter(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, new CardType[]{CardType.INSTANT}, "{4}{G}", "Gingerbread Hunter", "{2}{B}");
this.subtype.add(SubType.GIANT);
this.power = new MageInt(5);
this.toughness = new MageInt(5);
// When Gingerbread Hunter enters the battlefield, create a Food token.
this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new FoodToken())));
// Puny Snack
// Target creature gets -2/-2 until end of turn.
this.getSpellCard().getSpellAbility().addEffect(new BoostTargetEffect(-2, -2));
this.getSpellCard().getSpellAbility().addTarget(new TargetCreaturePermanent());
}
private GingerbreadHunter(final GingerbreadHunter card) {
super(card);
}
@Override
public GingerbreadHunter copy() {
return new GingerbreadHunter(this);
}
}

View file

@ -81,6 +81,7 @@ public final class WildsOfEldraine extends ExpansionSet {
cards.add(new SetCardInfo("Gadwick's First Duel", 51, Rarity.UNCOMMON, mage.cards.g.GadwicksFirstDuel.class));
cards.add(new SetCardInfo("Gallant Pie-Wielder", 15, Rarity.UNCOMMON, mage.cards.g.GallantPieWielder.class));
cards.add(new SetCardInfo("Galvanic Giant", 52, Rarity.UNCOMMON, mage.cards.g.GalvanicGiant.class));
cards.add(new SetCardInfo("Gingerbread Hunter", 227, Rarity.UNCOMMON, mage.cards.g.GingerbreadHunter.class));
cards.add(new SetCardInfo("Gingerbrute", 246, Rarity.COMMON, mage.cards.g.Gingerbrute.class));
cards.add(new SetCardInfo("Glass Casket", 16, Rarity.UNCOMMON, mage.cards.g.GlassCasket.class));
cards.add(new SetCardInfo("Goddric, Cloaked Reveler", 132, Rarity.RARE, mage.cards.g.GoddricCloakedReveler.class));