mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
[STX] Implemented Prismari Command
This commit is contained in:
parent
9e2ea59166
commit
47333c20c9
2 changed files with 61 additions and 0 deletions
58
Mage.Sets/src/mage/cards/p/PrismariCommand.java
Normal file
58
Mage.Sets/src/mage/cards/p/PrismariCommand.java
Normal file
|
@ -0,0 +1,58 @@
|
|||
package mage.cards.p;
|
||||
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.effects.common.CreateTokenTargetEffect;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
import mage.abilities.effects.common.DrawDiscardTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.game.permanent.token.TreasureToken;
|
||||
import mage.target.TargetPlayer;
|
||||
import mage.target.common.TargetAnyTarget;
|
||||
import mage.target.common.TargetArtifactPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class PrismariCommand extends CardImpl {
|
||||
|
||||
public PrismariCommand(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{U}{R}");
|
||||
|
||||
// Choose two —
|
||||
this.getSpellAbility().getModes().setMinModes(2);
|
||||
this.getSpellAbility().getModes().setMaxModes(2);
|
||||
|
||||
// • Prismari Command deals 2 damage to any target.
|
||||
this.getSpellAbility().addEffect(new DamageTargetEffect(2));
|
||||
this.getSpellAbility().addTarget(new TargetAnyTarget());
|
||||
|
||||
// • Target player draws two cards, then discards two cards.
|
||||
Mode mode = new Mode(new DrawDiscardTargetEffect(2, 2));
|
||||
mode.addTarget(new TargetPlayer());
|
||||
this.getSpellAbility().addMode(mode);
|
||||
|
||||
// • Target player creates a Treasure token.
|
||||
mode = new Mode(new CreateTokenTargetEffect(new TreasureToken()));
|
||||
mode.addTarget(new TargetPlayer());
|
||||
this.getSpellAbility().addMode(mode);
|
||||
|
||||
// • Destroy target artifact.
|
||||
mode = new Mode(new DestroyTargetEffect());
|
||||
mode.addTarget(new TargetArtifactPermanent());
|
||||
this.getSpellAbility().addMode(mode);
|
||||
}
|
||||
|
||||
private PrismariCommand(final PrismariCommand card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PrismariCommand copy() {
|
||||
return new PrismariCommand(this);
|
||||
}
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
package mage.sets;
|
||||
|
||||
import mage.cards.ExpansionSet;
|
||||
import mage.constants.Rarity;
|
||||
import mage.constants.SetType;
|
||||
|
||||
/**
|
||||
|
@ -24,5 +25,7 @@ public final class StrixhavenSchoolOfMages extends ExpansionSet {
|
|||
this.numBoosterRare = 1;
|
||||
this.ratioBoosterMythic = 7.4;
|
||||
this.maxCardNumberInBooster = 275;
|
||||
|
||||
cards.add(new SetCardInfo("Prismari Command", 215, Rarity.RARE, mage.cards.p.PrismariCommand.class));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue