[DFT] Implement Haunt the Network

This commit is contained in:
theelk801 2025-02-03 11:29:00 -05:00
parent 45ac890d7d
commit 6a55ee95a4
2 changed files with 47 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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));