mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
[KHC] Implemented Stoic Farmer
This commit is contained in:
parent
d0a0061915
commit
9f87839ca6
2 changed files with 68 additions and 0 deletions
67
Mage.Sets/src/mage/cards/s/StoicFarmer.java
Normal file
67
Mage.Sets/src/mage/cards/s/StoicFarmer.java
Normal file
|
@ -0,0 +1,67 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.abilities.condition.common.OpponentControlsMoreCondition;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.search.SearchLibraryPutInHandEffect;
|
||||
import mage.abilities.effects.common.search.SearchLibraryPutInPlayEffect;
|
||||
import mage.abilities.keyword.ForetellAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.common.TargetCardInLibrary;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class StoicFarmer extends CardImpl {
|
||||
|
||||
private static final FilterCard filter = new FilterCard("a basic Plains card");
|
||||
|
||||
static {
|
||||
filter.add(SuperType.BASIC.getPredicate());
|
||||
filter.add(SubType.PLAINS.getPredicate());
|
||||
}
|
||||
|
||||
private static final Condition condition = new OpponentControlsMoreCondition(StaticFilters.FILTER_LANDS);
|
||||
|
||||
public StoicFarmer(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{W}");
|
||||
|
||||
this.subtype.add(SubType.DWARF);
|
||||
this.subtype.add(SubType.PEASANT);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// When Stoic Farmer enters the battlefield, search your library for a basic Plains card and reveal it. If an opponent controls more lands than you, put it onto the battlefield tapped. Otherwise, put it into your hand. Then shuffle your library.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(
|
||||
new ConditionalOneShotEffect(
|
||||
new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(filter), true),
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter)),
|
||||
condition, "search your library for a basic Plains card and reveal it. " +
|
||||
"If an opponent controls more lands than you, put it onto the battlefield tapped. " +
|
||||
"Otherwise, put it into your hand. Then shuffle your library"
|
||||
)
|
||||
));
|
||||
|
||||
// Foretell {1}{W}
|
||||
this.addAbility(new ForetellAbility(this, "{1}{W}"));
|
||||
}
|
||||
|
||||
private StoicFarmer(final StoicFarmer card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public StoicFarmer copy() {
|
||||
return new StoicFarmer(this);
|
||||
}
|
||||
}
|
|
@ -27,5 +27,6 @@ public final class KaldheimCommander extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Ruthless Winnower", 10, Rarity.RARE, mage.cards.r.RuthlessWinnower.class));
|
||||
cards.add(new SetCardInfo("Sage of the Beyond", 6, Rarity.RARE, mage.cards.s.SageOfTheBeyond.class));
|
||||
cards.add(new SetCardInfo("Spectral Deluge", 7, Rarity.RARE, mage.cards.s.SpectralDeluge.class));
|
||||
cards.add(new SetCardInfo("Stoic Farmer", 5, Rarity.RARE, mage.cards.s.StoicFarmer.class));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue