forked from External/mage
[ONE] Implement Sheoldred's Edict
This commit is contained in:
parent
c0218722f7
commit
d1f2b8902d
2 changed files with 51 additions and 0 deletions
50
Mage.Sets/src/mage/cards/s/SheoldredsEdict.java
Normal file
50
Mage.Sets/src/mage/cards/s/SheoldredsEdict.java
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.effects.common.SacrificeOpponentsEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.permanent.TokenPredicate;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class SheoldredsEdict extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterCreaturePermanent("nontoken creature");
|
||||
private static final FilterPermanent filter2 = new FilterCreaturePermanent("creature token");
|
||||
|
||||
static {
|
||||
filter.add(TokenPredicate.FALSE);
|
||||
filter2.add(TokenPredicate.TRUE);
|
||||
}
|
||||
|
||||
public SheoldredsEdict(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{B}");
|
||||
|
||||
// Choose one
|
||||
// * Each opponent sacrifices a nontoken creature.
|
||||
this.getSpellAbility().addEffect(new SacrificeOpponentsEffect(filter));
|
||||
|
||||
// * Each opponent sacrifices a creature token.
|
||||
this.getSpellAbility().addMode(new Mode(new SacrificeOpponentsEffect(filter2)));
|
||||
|
||||
// * Each opponent sacrifices a planeswalker.
|
||||
this.getSpellAbility().addMode(new Mode(new SacrificeOpponentsEffect(StaticFilters.FILTER_PERMANENT_PLANESWALKER)));
|
||||
}
|
||||
|
||||
private SheoldredsEdict(final SheoldredsEdict card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SheoldredsEdict copy() {
|
||||
return new SheoldredsEdict(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -66,6 +66,7 @@ public final class PhyrexiaAllWillBeOne extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Razorverge Thicket", 257, Rarity.RARE, mage.cards.r.RazorvergeThicket.class));
|
||||
cards.add(new SetCardInfo("Seachrome Coast", 258, Rarity.RARE, mage.cards.s.SeachromeCoast.class));
|
||||
cards.add(new SetCardInfo("Serum Sovereign", 405, Rarity.RARE, mage.cards.s.SerumSovereign.class));
|
||||
cards.add(new SetCardInfo("Sheoldred's Edict", 108, Rarity.UNCOMMON, mage.cards.s.SheoldredsEdict.class));
|
||||
cards.add(new SetCardInfo("Sinew Dancer", 32, Rarity.COMMON, mage.cards.s.SinewDancer.class));
|
||||
cards.add(new SetCardInfo("Skrelv's Hive", 34, Rarity.RARE, mage.cards.s.SkrelvsHive.class));
|
||||
cards.add(new SetCardInfo("Swamp", 274, Rarity.LAND, mage.cards.basiclands.Swamp.class, NON_FULL_USE_VARIOUS));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue