[J25] Implement Go Forth

This commit is contained in:
theelk801 2024-10-30 16:11:14 -04:00
parent 40e99dfc1f
commit 01dd97ae21
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,42 @@
package mage.cards.g;
import mage.abilities.Mode;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.abilities.effects.common.search.SearchLibraryPutInHandEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.StaticFilters;
import mage.target.common.TargetCardInLibrary;
import mage.target.common.TargetCreaturePermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class GoForth extends CardImpl {
public GoForth(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{G}");
// Choose one--
// * Search your library for a basic land card, reveal it, put it into your hand, then shuffle.
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(
new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true
));
// * Target creature gets +2/+2 until end of turn.
this.getSpellAbility().addMode(new Mode(new BoostTargetEffect(2, 2))
.addTarget(new TargetCreaturePermanent()));
}
private GoForth(final GoForth card) {
super(card);
}
@Override
public GoForth copy() {
return new GoForth(this);
}
}

View file

@ -299,6 +299,7 @@ public final class FoundationsJumpstart extends ExpansionSet {
cards.add(new SetCardInfo("Gluttonous Guest", 445, Rarity.COMMON, mage.cards.g.GluttonousGuest.class));
cards.add(new SetCardInfo("Gnarlid Colony", 664, Rarity.COMMON, mage.cards.g.GnarlidColony.class));
cards.add(new SetCardInfo("Gnawing Zombie", 446, Rarity.COMMON, mage.cards.g.GnawingZombie.class));
cards.add(new SetCardInfo("Go Forth", 20, Rarity.COMMON, mage.cards.g.GoForth.class));
cards.add(new SetCardInfo("Go for the Throat", 447, Rarity.UNCOMMON, mage.cards.g.GoForTheThroat.class));
cards.add(new SetCardInfo("Goblin Arsonist", 555, Rarity.COMMON, mage.cards.g.GoblinArsonist.class));
cards.add(new SetCardInfo("Goblin Dark-Dwellers", 556, Rarity.RARE, mage.cards.g.GoblinDarkDwellers.class));