diff --git a/Mage.Sets/src/mage/cards/o/OliviasWrath.java b/Mage.Sets/src/mage/cards/o/OliviasWrath.java new file mode 100644 index 00000000000..83ff17cf1e8 --- /dev/null +++ b/Mage.Sets/src/mage/cards/o/OliviasWrath.java @@ -0,0 +1,56 @@ +package mage.cards.o; + +import mage.abilities.dynamicvalue.DynamicValue; +import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount; +import mage.abilities.effects.common.continuous.BoostAllEffect; +import mage.abilities.hint.Hint; +import mage.abilities.hint.ValueHint; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterControlledPermanent; +import mage.filter.common.FilterCreaturePermanent; +import mage.filter.predicate.Predicates; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class OliviasWrath extends CardImpl { + + private static final FilterCreaturePermanent filter = new FilterCreaturePermanent(); + private static final FilterPermanent filter2 = new FilterControlledPermanent(SubType.VAMPIRE); + + static { + filter.add(Predicates.or(SubType.VAMPIRE.getPredicate())); + } + + private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(filter2, -1); + private static final Hint hint = new ValueHint( + "Vampires you control", new PermanentsOnBattlefieldCount(filter2) + ); + + public OliviasWrath(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{B}"); + + // Each non-Vampire creature gets -X/-X until end of turn, where X is the number of Vampires you control. + this.getSpellAbility().addEffect(new BoostAllEffect( + xValue, xValue, Duration.EndOfTurn, filter, false, + "each non-Vampire creature gets -X/-X until end of turn, " + + "where X is the number of Vampires you control", true + )); + } + + private OliviasWrath(final OliviasWrath card) { + super(card); + } + + @Override + public OliviasWrath copy() { + return new OliviasWrath(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CrimsonVowCommander.java b/Mage.Sets/src/mage/sets/CrimsonVowCommander.java index 7ac1937bf65..e973e7202f9 100644 --- a/Mage.Sets/src/mage/sets/CrimsonVowCommander.java +++ b/Mage.Sets/src/mage/sets/CrimsonVowCommander.java @@ -94,6 +94,7 @@ public final class CrimsonVowCommander extends ExpansionSet { cards.add(new SetCardInfo("Night's Whisper", 133, Rarity.COMMON, mage.cards.n.NightsWhisper.class)); cards.add(new SetCardInfo("Nirkana Revenant", 134, Rarity.MYTHIC, mage.cards.n.NirkanaRevenant.class)); cards.add(new SetCardInfo("Occult Epiphany", 14, Rarity.RARE, mage.cards.o.OccultEpiphany.class)); + cards.add(new SetCardInfo("Olivia's Wrath", 20, Rarity.RARE, mage.cards.o.OliviasWrath.class)); cards.add(new SetCardInfo("Oyobi, Who Split the Heavens", 95, Rarity.RARE, mage.cards.o.OyobiWhoSplitTheHeavens.class)); cards.add(new SetCardInfo("Path of Ancestry", 177, Rarity.COMMON, mage.cards.p.PathOfAncestry.class)); cards.add(new SetCardInfo("Patron of the Vein", 135, Rarity.RARE, mage.cards.p.PatronOfTheVein.class));