mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[WOE] Implement Rankle's Prank
This commit is contained in:
parent
9e052bd9b6
commit
30af67d635
2 changed files with 49 additions and 0 deletions
48
Mage.Sets/src/mage/cards/r/RanklesPrank.java
Normal file
48
Mage.Sets/src/mage/cards/r/RanklesPrank.java
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.effects.common.LoseLifeAllPlayersEffect;
|
||||
import mage.abilities.effects.common.SacrificeAllEffect;
|
||||
import mage.abilities.effects.common.discard.DiscardEachPlayerEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class RanklesPrank extends CardImpl {
|
||||
|
||||
private static final FilterControlledPermanent filter = new FilterControlledCreaturePermanent("creatures");
|
||||
|
||||
public RanklesPrank(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{B}{B}");
|
||||
|
||||
|
||||
// Choose one or more --
|
||||
this.getSpellAbility().getModes().setMinModes(1);
|
||||
this.getSpellAbility().getModes().setMaxModes(3);
|
||||
|
||||
// * Each player discards two cards.
|
||||
this.getSpellAbility().addEffect(new DiscardEachPlayerEffect(2, false));
|
||||
|
||||
// * Each player loses 4 life.
|
||||
this.getSpellAbility().addMode(new Mode(new LoseLifeAllPlayersEffect(4)));
|
||||
|
||||
// * Each player sacrifices two creatures.
|
||||
this.getSpellAbility().addMode(new Mode(new SacrificeAllEffect(2, filter)));
|
||||
}
|
||||
|
||||
private RanklesPrank(final RanklesPrank card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RanklesPrank copy() {
|
||||
return new RanklesPrank(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -113,6 +113,7 @@ public final class WildsOfEldraine extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Plains", 262, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Prophetic Prism", 249, Rarity.COMMON, mage.cards.p.PropheticPrism.class));
|
||||
cards.add(new SetCardInfo("Raging Battle Mouse", 143, Rarity.RARE, mage.cards.r.RagingBattleMouse.class));
|
||||
cards.add(new SetCardInfo("Rankle's Prank", 102, Rarity.RARE, mage.cards.r.RanklesPrank.class));
|
||||
cards.add(new SetCardInfo("Rat Out", 103, Rarity.COMMON, mage.cards.r.RatOut.class));
|
||||
cards.add(new SetCardInfo("Ratcatcher Trainee", 144, Rarity.COMMON, mage.cards.r.RatcatcherTrainee.class));
|
||||
cards.add(new SetCardInfo("Realm-Scorcher Hellkite", 145, Rarity.MYTHIC, mage.cards.r.RealmScorcherHellkite.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue