fixed Overgrowth Elemental triggering off of opponent's creatures

This commit is contained in:
Evan Kranzler 2019-06-28 20:02:22 -04:00
parent 891199924e
commit ba4afd6767

View file

@ -30,9 +30,12 @@ public final class OvergrowthElemental extends CardImpl {
private static final FilterPermanent filter
= new FilterControlledCreaturePermanent(SubType.ELEMENTAL, "another target Elemental you control");
private static final FilterPermanent filter2
= new FilterControlledCreaturePermanent("another creature you control");
static {
filter.add(AnotherPredicate.instance);
filter2.add(AnotherPredicate.instance);
}
public OvergrowthElemental(UUID ownerId, CardSetInfo setInfo) {
@ -50,7 +53,7 @@ public final class OvergrowthElemental extends CardImpl {
this.addAbility(ability);
// Whenever another creature you control dies, you gain 1 life. If that creature was an Elemental, put a +1/+1 counter on Overgrowth Elemental.
ability = new DiesCreatureTriggeredAbility(new GainLifeEffect(1), false, true, true);
ability = new DiesCreatureTriggeredAbility(new GainLifeEffect(1), false, filter2, true);
ability.addEffect(new OvergrowthElementalEffect());
this.addAbility(ability);
}