mirror of
https://github.com/correl/mage.git
synced 2025-01-12 03:00:13 +00:00
[ZNR] Implemented Reclaim the Wastes
This commit is contained in:
parent
a98bfdf948
commit
cadb277739
2 changed files with 51 additions and 0 deletions
50
Mage.Sets/src/mage/cards/r/ReclaimTheWastes.java
Normal file
50
Mage.Sets/src/mage/cards/r/ReclaimTheWastes.java
Normal file
|
@ -0,0 +1,50 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import mage.abilities.condition.common.KickedCondition;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.search.SearchLibraryPutInHandEffect;
|
||||
import mage.abilities.keyword.KickerAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.common.TargetCardInLibrary;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class ReclaimTheWastes extends CardImpl {
|
||||
|
||||
public ReclaimTheWastes(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{G}");
|
||||
|
||||
// Kicker {3}
|
||||
this.addAbility(new KickerAbility(new ManaCostsImpl<>("{3}")));
|
||||
|
||||
// Search your library for a basic land card, reveal it, put it into your hand, then shuffle your library. If this spell was kicked, search your library for two basic land cards instead of one.
|
||||
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(
|
||||
0, 2,
|
||||
StaticFilters.FILTER_CARD_BASIC_LAND
|
||||
), true),
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(
|
||||
0, 1,
|
||||
StaticFilters.FILTER_CARD_BASIC_LAND
|
||||
), true), KickedCondition.instance, "search your library for a basic land card, " +
|
||||
"reveal it, put it into your hand, then shuffle your library. If this spell was kicked, " +
|
||||
"search your library for two basic land cards instead of one"
|
||||
));
|
||||
}
|
||||
|
||||
private ReclaimTheWastes(final ReclaimTheWastes card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ReclaimTheWastes copy() {
|
||||
return new ReclaimTheWastes(this);
|
||||
}
|
||||
}
|
|
@ -269,6 +269,7 @@ public final class ZendikarRising extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Prowling Felidar", 34, Rarity.COMMON, mage.cards.p.ProwlingFelidar.class));
|
||||
cards.add(new SetCardInfo("Rabid Bite", 199, Rarity.COMMON, mage.cards.r.RabidBite.class));
|
||||
cards.add(new SetCardInfo("Ravager's Mace", 235, Rarity.UNCOMMON, mage.cards.r.RavagersMace.class));
|
||||
cards.add(new SetCardInfo("Reclaim the Wastes", 200, Rarity.COMMON, mage.cards.r.ReclaimTheWastes.class));
|
||||
cards.add(new SetCardInfo("Relic Golem", 249, Rarity.UNCOMMON, mage.cards.r.RelicGolem.class));
|
||||
cards.add(new SetCardInfo("Relic Robber", 153, Rarity.RARE, mage.cards.r.RelicRobber.class));
|
||||
cards.add(new SetCardInfo("Relic Vial", 250, Rarity.UNCOMMON, mage.cards.r.RelicVial.class));
|
||||
|
|
Loading…
Reference in a new issue