From eb68350d047c304209fb63760ee3835cdbb9d534 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 28 Oct 2021 21:10:54 -0400 Subject: [PATCH] [VOW] Implemented Vampires' Vengeance --- .../src/mage/cards/v/VampiresVengeance.java | 43 +++++++++++++++++++ .../src/mage/sets/InnistradCrimsonVow.java | 1 + 2 files changed, 44 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/v/VampiresVengeance.java diff --git a/Mage.Sets/src/mage/cards/v/VampiresVengeance.java b/Mage.Sets/src/mage/cards/v/VampiresVengeance.java new file mode 100644 index 0000000000..53bfdb6c45 --- /dev/null +++ b/Mage.Sets/src/mage/cards/v/VampiresVengeance.java @@ -0,0 +1,43 @@ +package mage.cards.v; + +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.DamageAllEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterCreaturePermanent; +import mage.filter.predicate.Predicates; +import mage.game.permanent.token.BloodToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class VampiresVengeance extends CardImpl { + + private static final FilterPermanent filter = new FilterCreaturePermanent("non-Vampire creature."); + + static { + filter.add(Predicates.not(SubType.VAMPIRE.getPredicate())); + } + + public VampiresVengeance(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{R}"); + + // Vampires' Vengeance deals 2 damage to each non-Vampire creature. Create a Blood token. + this.getSpellAbility().addEffect(new DamageAllEffect(2, filter)); + this.getSpellAbility().addEffect(new CreateTokenEffect(new BloodToken())); + } + + private VampiresVengeance(final VampiresVengeance card) { + super(card); + } + + @Override + public VampiresVengeance copy() { + return new VampiresVengeance(this); + } +} diff --git a/Mage.Sets/src/mage/sets/InnistradCrimsonVow.java b/Mage.Sets/src/mage/sets/InnistradCrimsonVow.java index 4e83f77e9c..e9eff0d1f8 100644 --- a/Mage.Sets/src/mage/sets/InnistradCrimsonVow.java +++ b/Mage.Sets/src/mage/sets/InnistradCrimsonVow.java @@ -47,6 +47,7 @@ public final class InnistradCrimsonVow extends ExpansionSet { cards.add(new SetCardInfo("Sundown Pass", 266, Rarity.RARE, mage.cards.s.SundownPass.class)); cards.add(new SetCardInfo("Swamp", 272, Rarity.LAND, mage.cards.basiclands.Swamp.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Thalia, Guardian of Thraben", 38, Rarity.RARE, mage.cards.t.ThaliaGuardianOfThraben.class)); + cards.add(new SetCardInfo("Vampires' Vengeance", 180, Rarity.UNCOMMON, mage.cards.v.VampiresVengeance.class)); cards.add(new SetCardInfo("Weary Prisoner", 184, Rarity.COMMON, mage.cards.w.WearyPrisoner.class)); cards.add(new SetCardInfo("Wrathful Jailbreaker", 184, Rarity.COMMON, mage.cards.w.WrathfulJailbreaker.class));