mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
[DMU] Implemented Phyrexian Espionage
This commit is contained in:
parent
34cce1474c
commit
29ecf87cec
2 changed files with 43 additions and 0 deletions
42
Mage.Sets/src/mage/cards/p/PhyrexianEspionage.java
Normal file
42
Mage.Sets/src/mage/cards/p/PhyrexianEspionage.java
Normal file
|
@ -0,0 +1,42 @@
|
|||
package mage.cards.p;
|
||||
|
||||
import mage.abilities.condition.common.KickedCondition;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.discard.DiscardEachPlayerEffect;
|
||||
import mage.abilities.keyword.KickerAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.TargetController;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class PhyrexianEspionage extends CardImpl {
|
||||
|
||||
public PhyrexianEspionage(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{U}");
|
||||
|
||||
// Kicker {1}{B}
|
||||
this.addAbility(new KickerAbility("{1}{B}"));
|
||||
|
||||
// Draw two cards. If this spell was kicked, each opponent discards a card.
|
||||
this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(2));
|
||||
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
||||
new DiscardEachPlayerEffect(TargetController.OPPONENT), KickedCondition.ONCE,
|
||||
"If this spell was kicked, each opponent discards a card"
|
||||
));
|
||||
}
|
||||
|
||||
private PhyrexianEspionage(final PhyrexianEspionage card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PhyrexianEspionage copy() {
|
||||
return new PhyrexianEspionage(this);
|
||||
}
|
||||
}
|
|
@ -80,6 +80,7 @@ public final class DominariaUnited extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Mountain", 271, Rarity.LAND, mage.cards.basiclands.Mountain.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Nishoba Brawler", 174, Rarity.UNCOMMON, mage.cards.n.NishobaBrawler.class));
|
||||
cards.add(new SetCardInfo("Phoenix Chick", 140, Rarity.UNCOMMON, mage.cards.p.PhoenixChick.class));
|
||||
cards.add(new SetCardInfo("Phyrexian Espionage", 60, Rarity.COMMON, mage.cards.p.PhyrexianEspionage.class));
|
||||
cards.add(new SetCardInfo("Pilfer", 102, Rarity.UNCOMMON, mage.cards.p.Pilfer.class));
|
||||
cards.add(new SetCardInfo("Plains", 262, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Protect the Negotiators", 62, Rarity.UNCOMMON, mage.cards.p.ProtectTheNegotiators.class));
|
||||
|
|
Loading…
Reference in a new issue