fixed Erebos, Bleak-Hearted triggering off of opposing creatures

This commit is contained in:
Evan Kranzler 2020-01-17 18:32:26 -05:00
parent 4f7133bd08
commit cf97b9e6c7

View file

@ -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(