mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 19:11:59 -08:00
[MOM] Implement Fertilid's Favor
This commit is contained in:
parent
301e1bfe39
commit
1baf6c8e11
2 changed files with 47 additions and 0 deletions
46
Mage.Sets/src/mage/cards/f/FertilidsFavor.java
Normal file
46
Mage.Sets/src/mage/cards/f/FertilidsFavor.java
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
package mage.cards.f;
|
||||
|
||||
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
||||
import mage.abilities.effects.common.search.SearchLibraryPutInPlayTargetPlayerEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.TargetPermanent;
|
||||
import mage.target.TargetPlayer;
|
||||
import mage.target.common.TargetCardInLibrary;
|
||||
import mage.target.targetpointer.SecondTargetPointer;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class FertilidsFavor extends CardImpl {
|
||||
|
||||
public FertilidsFavor(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{G}");
|
||||
|
||||
// Target player searches their library for a basic land card, puts it onto the battlefield tapped, then shuffles. Put two +1/+1 counters on up to one target artifact or creature.
|
||||
this.getSpellAbility().addEffect(new SearchLibraryPutInPlayTargetPlayerEffect(
|
||||
new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true, true
|
||||
));
|
||||
this.getSpellAbility().addTarget(new TargetPlayer());
|
||||
this.getSpellAbility().addEffect(new AddCountersTargetEffect(CounterType.P1P1.createInstance(2))
|
||||
.setText("put two +1/+1 counters on up to one target artifact or creature")
|
||||
.setTargetPointer(new SecondTargetPointer()));
|
||||
this.getSpellAbility().addTarget(new TargetPermanent(
|
||||
0, 1, StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_CREATURE
|
||||
));
|
||||
}
|
||||
|
||||
private FertilidsFavor(final FertilidsFavor card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public FertilidsFavor copy() {
|
||||
return new FertilidsFavor(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -87,6 +87,7 @@ public final class MarchOfTheMachine extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Failed Conversion", 103, Rarity.COMMON, mage.cards.f.FailedConversion.class));
|
||||
cards.add(new SetCardInfo("Fairgrounds Trumpeter", 335, Rarity.COMMON, mage.cards.f.FairgroundsTrumpeter.class));
|
||||
cards.add(new SetCardInfo("Fearless Skald", 138, Rarity.UNCOMMON, mage.cards.f.FearlessSkald.class));
|
||||
cards.add(new SetCardInfo("Fertilid's Favor", 186, Rarity.COMMON, mage.cards.f.FertilidsFavor.class));
|
||||
cards.add(new SetCardInfo("Final Flourish", 104, Rarity.COMMON, mage.cards.f.FinalFlourish.class));
|
||||
cards.add(new SetCardInfo("Flitting Guerrilla", 105, Rarity.COMMON, mage.cards.f.FlittingGuerrilla.class));
|
||||
cards.add(new SetCardInfo("Flywheel Racer", 259, Rarity.COMMON, mage.cards.f.FlywheelRacer.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue