refactored AnotherPredicate to singleton enum

This commit is contained in:
Evan Kranzler 2019-01-12 16:12:51 -05:00
parent 92b5535a0e
commit e6b99215e1
417 changed files with 427 additions and 427 deletions

View file

@ -30,7 +30,7 @@ public class DiesCreatureTriggeredAbility extends TriggeredAbilityImpl {
public DiesCreatureTriggeredAbility(Effect effect, boolean optional, boolean another, boolean setTargetPointer) {
this(effect, optional, new FilterCreaturePermanent(another ? "another creature" : "a creature"));
if (another) {
filter.add(new AnotherPredicate());
filter.add(AnotherPredicate.instance);
}
this.setTargetPointer = setTargetPointer;
}