From cf97b9e6c7f788531cfcacb673a8eb525c49bcc1 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 17 Jan 2020 18:32:26 -0500 Subject: [PATCH] fixed Erebos, Bleak-Hearted triggering off of opposing creatures --- Mage.Sets/src/mage/cards/e/ErebosBleakHearted.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/cards/e/ErebosBleakHearted.java b/Mage.Sets/src/mage/cards/e/ErebosBleakHearted.java index 2fe671c3a0..8be2075403 100644 --- a/Mage.Sets/src/mage/cards/e/ErebosBleakHearted.java +++ b/Mage.Sets/src/mage/cards/e/ErebosBleakHearted.java @@ -19,7 +19,10 @@ import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.SubType; import mage.constants.SuperType; +import mage.filter.FilterPermanent; import mage.filter.StaticFilters; +import mage.filter.common.FilterControlledCreaturePermanent; +import mage.filter.predicate.permanent.AnotherPredicate; import mage.target.common.TargetControlledPermanent; import mage.target.common.TargetCreaturePermanent; @@ -30,6 +33,13 @@ import java.util.UUID; */ public final class ErebosBleakHearted extends CardImpl { + private static final FilterPermanent filter + = new FilterControlledCreaturePermanent("another creature you control"); + + static { + filter.add(AnotherPredicate.instance); + } + public ErebosBleakHearted(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT, CardType.CREATURE}, "{3}{B}"); @@ -48,7 +58,7 @@ public final class ErebosBleakHearted extends CardImpl { // Whenever another creature you control dies, you may pay 2 life. If you do, draw a card. this.addAbility(new DiesCreatureTriggeredAbility(new DoIfCostPaid( new DrawCardSourceControllerEffect(1), new PayLifeCost(2) - ), false, true)); + ), false, filter, true)); // {1}{B}, Sacrifice another creature: Target creature gets -2/-1 until end of turn. Ability ability = new SimpleActivatedAbility(