mirror of
https://github.com/correl/mage.git
synced 2024-11-28 19:19:55 +00:00
[BRO] Implement Wasteful Harvest
This commit is contained in:
parent
03982365bd
commit
a3dac3962e
3 changed files with 38 additions and 0 deletions
31
Mage.Sets/src/mage/cards/w/WastefulHarvest.java
Normal file
31
Mage.Sets/src/mage/cards/w/WastefulHarvest.java
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
package mage.cards.w;
|
||||||
|
|
||||||
|
import mage.abilities.effects.common.MillThenPutInHandEffect;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.filter.StaticFilters;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class WastefulHarvest extends CardImpl {
|
||||||
|
|
||||||
|
public WastefulHarvest(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{G}");
|
||||||
|
|
||||||
|
// Mill five cards. You may put a permanent card from among the cards milled this way into your hand.
|
||||||
|
this.getSpellAbility().addEffect(new MillThenPutInHandEffect(5, StaticFilters.FILTER_CARD_A_PERMANENT));
|
||||||
|
}
|
||||||
|
|
||||||
|
private WastefulHarvest(final WastefulHarvest card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public WastefulHarvest copy() {
|
||||||
|
return new WastefulHarvest(this);
|
||||||
|
}
|
||||||
|
}
|
|
@ -254,6 +254,7 @@ public final class TheBrothersWar extends ExpansionSet {
|
||||||
cards.add(new SetCardInfo("Urza, Prince of Kroog", 226, Rarity.RARE, mage.cards.u.UrzaPrinceOfKroog.class));
|
cards.add(new SetCardInfo("Urza, Prince of Kroog", 226, Rarity.RARE, mage.cards.u.UrzaPrinceOfKroog.class));
|
||||||
cards.add(new SetCardInfo("Veteran's Powerblade", 41, Rarity.COMMON, mage.cards.v.VeteransPowerblade.class));
|
cards.add(new SetCardInfo("Veteran's Powerblade", 41, Rarity.COMMON, mage.cards.v.VeteransPowerblade.class));
|
||||||
cards.add(new SetCardInfo("Warlord's Elite", 32, Rarity.COMMON, mage.cards.w.WarlordsElite.class));
|
cards.add(new SetCardInfo("Warlord's Elite", 32, Rarity.COMMON, mage.cards.w.WarlordsElite.class));
|
||||||
|
cards.add(new SetCardInfo("Wasteful Harvest", 196, Rarity.COMMON, mage.cards.w.WastefulHarvest.class));
|
||||||
cards.add(new SetCardInfo("Weakstone's Subjugation", 72, Rarity.COMMON, mage.cards.w.WeakstonesSubjugation.class));
|
cards.add(new SetCardInfo("Weakstone's Subjugation", 72, Rarity.COMMON, mage.cards.w.WeakstonesSubjugation.class));
|
||||||
cards.add(new SetCardInfo("Whirling Strike", 157, Rarity.COMMON, mage.cards.w.WhirlingStrike.class));
|
cards.add(new SetCardInfo("Whirling Strike", 157, Rarity.COMMON, mage.cards.w.WhirlingStrike.class));
|
||||||
cards.add(new SetCardInfo("Wing Commando", 73, Rarity.COMMON, mage.cards.w.WingCommando.class));
|
cards.add(new SetCardInfo("Wing Commando", 73, Rarity.COMMON, mage.cards.w.WingCommando.class));
|
||||||
|
|
|
@ -224,6 +224,12 @@ public final class StaticFilters {
|
||||||
FILTER_CARD_PERMANENT.setLockedFilter(true);
|
FILTER_CARD_PERMANENT.setLockedFilter(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static final FilterPermanentCard FILTER_CARD_A_PERMANENT = new FilterPermanentCard("a permanent card");
|
||||||
|
|
||||||
|
static {
|
||||||
|
FILTER_CARD_A_PERMANENT.setLockedFilter(true);
|
||||||
|
}
|
||||||
|
|
||||||
public static final FilterPermanent FILTER_PERMANENT = new FilterPermanent();
|
public static final FilterPermanent FILTER_PERMANENT = new FilterPermanent();
|
||||||
|
|
||||||
static {
|
static {
|
||||||
|
|
Loading…
Reference in a new issue