diff --git a/Mage.Sets/src/mage/cards/h/HauntTheNetwork.java b/Mage.Sets/src/mage/cards/h/HauntTheNetwork.java new file mode 100644 index 00000000000..683767551b5 --- /dev/null +++ b/Mage.Sets/src/mage/cards/h/HauntTheNetwork.java @@ -0,0 +1,46 @@ +package mage.cards.h; + +import mage.abilities.dynamicvalue.common.ArtifactYouControlCount; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.GainLifeEffect; +import mage.abilities.effects.common.InfoEffect; +import mage.abilities.effects.common.LoseLifeTargetEffect; +import mage.abilities.hint.common.ArtifactYouControlHint; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.game.permanent.token.ThopterColorlessToken; +import mage.target.common.TargetOpponent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class HauntTheNetwork extends CardImpl { + + public HauntTheNetwork(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{U}{B}"); + + // Choose target opponent. Create two 1/1 colorless Thopter artifact creature tokens with flying. Then the chosen player loses X life and you gain X life, where X is the number of artifacts you control. + this.getSpellAbility().addEffect(new InfoEffect("choose target opponent")); + this.getSpellAbility().addEffect(new CreateTokenEffect(new ThopterColorlessToken(), 2)); + this.getSpellAbility().addEffect(new LoseLifeTargetEffect(ArtifactYouControlCount.instance) + .setText("then the chosen player loses X life")); + this.getSpellAbility().addEffect(new GainLifeEffect( + ArtifactYouControlCount.instance, "and you gain X life, " + + "where X is the number of artifacts you control" + )); + this.getSpellAbility().addTarget(new TargetOpponent()); + this.getSpellAbility().addHint(ArtifactYouControlHint.instance); + } + + private HauntTheNetwork(final HauntTheNetwork card) { + super(card); + } + + @Override + public HauntTheNetwork copy() { + return new HauntTheNetwork(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Aetherdrift.java b/Mage.Sets/src/mage/sets/Aetherdrift.java index 132ac5d8cea..185de403876 100644 --- a/Mage.Sets/src/mage/sets/Aetherdrift.java +++ b/Mage.Sets/src/mage/sets/Aetherdrift.java @@ -104,6 +104,7 @@ public final class Aetherdrift extends ExpansionSet { cards.add(new SetCardInfo("Guardian Sunmare", 15, Rarity.RARE, mage.cards.g.GuardianSunmare.class)); cards.add(new SetCardInfo("Guidelight Pathmaker", 206, Rarity.UNCOMMON, mage.cards.g.GuidelightPathmaker.class)); cards.add(new SetCardInfo("Guidelight Synergist", 16, Rarity.UNCOMMON, mage.cards.g.GuidelightSynergist.class)); + cards.add(new SetCardInfo("Haunt the Network", 207, Rarity.UNCOMMON, mage.cards.h.HauntTheNetwork.class)); cards.add(new SetCardInfo("Haunted Hellride", 208, Rarity.UNCOMMON, mage.cards.h.HauntedHellride.class)); cards.add(new SetCardInfo("Hazard of the Dunes", 165, Rarity.COMMON, mage.cards.h.HazardOfTheDunes.class)); cards.add(new SetCardInfo("Hazoret, Godseeker", 133, Rarity.MYTHIC, mage.cards.h.HazoretGodseeker.class));