implement [MH3] Gift of the Viper (#12338)

This commit is contained in:
grimreap124 2024-05-30 21:09:57 +10:00 committed by GitHub
parent 1c8725c0e5
commit cff948a353
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,42 @@
package mage.cards.g;
import java.util.UUID;
import mage.abilities.effects.common.UntapTargetEffect;
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.counters.CounterType;
import mage.target.common.TargetCreaturePermanent;
/**
*
* @author grimreap124
*/
public final class GiftOfTheViper extends CardImpl {
public GiftOfTheViper(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[] { CardType.INSTANT }, "{G}");
// Put a +1/+1 counter, a reach counter, and a deathtouch counter on target creature. Untap it.
this.getSpellAbility().addEffect(new AddCountersTargetEffect(CounterType.P1P1.createInstance())
.setText("Put a +1/+1 counter"));
this.getSpellAbility().addEffect(new AddCountersTargetEffect(CounterType.REACH.createInstance())
.setText("a reach counter").concatBy(","));
this.getSpellAbility()
.addEffect(new AddCountersTargetEffect(CounterType.DEATHTOUCH.createInstance())
.setText("a deathtouch counter on target creature").concatBy(", and"));
this.getSpellAbility().addEffect(new UntapTargetEffect("untap it"));
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
}
private GiftOfTheViper(final GiftOfTheViper card) {
super(card);
}
@Override
public GiftOfTheViper copy() {
return new GiftOfTheViper(this);
}
}

View file

@ -95,6 +95,7 @@ public final class ModernHorizons3 extends ExpansionSet {
cards.add(new SetCardInfo("Furnace Hellkite", 121, Rarity.UNCOMMON, mage.cards.f.FurnaceHellkite.class));
cards.add(new SetCardInfo("Galvanic Discharge", 122, Rarity.COMMON, mage.cards.g.GalvanicDischarge.class));
cards.add(new SetCardInfo("Ghostfire Slice", 123, Rarity.UNCOMMON, mage.cards.g.GhostfireSlice.class));
cards.add(new SetCardInfo("Gift of the Viper", 156, Rarity.COMMON, mage.cards.g.GiftOfTheViper.class));
cards.add(new SetCardInfo("Glasswing Grace", 254, Rarity.UNCOMMON, mage.cards.g.GlasswingGrace.class));
cards.add(new SetCardInfo("Gravedig", 96, Rarity.COMMON, mage.cards.g.Gravedig.class));
cards.add(new SetCardInfo("Grim Servant", 97, Rarity.UNCOMMON, mage.cards.g.GrimServant.class));