mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
fixed Overgrowth Elemental triggering off of opponent's creatures
This commit is contained in:
parent
891199924e
commit
ba4afd6767
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue