fixed Stench of Decay shrinking artifacts rather than nonartifacts

This commit is contained in:
Evan Kranzler 2018-05-14 12:01:34 -04:00
parent 00e953ed19
commit 954237e5ff

View file

@ -34,6 +34,7 @@ import mage.cards.CardSetInfo;
import mage.constants.CardType; import mage.constants.CardType;
import mage.constants.Duration; import mage.constants.Duration;
import mage.filter.common.FilterCreaturePermanent; import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.Predicates;
import mage.filter.predicate.mageobject.CardTypePredicate; import mage.filter.predicate.mageobject.CardTypePredicate;
/** /**
@ -45,7 +46,7 @@ public class StenchOfDecay extends CardImpl {
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Nonartifact creatures"); private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Nonartifact creatures");
static { static {
filter.add(new CardTypePredicate(CardType.ARTIFACT)); filter.add(Predicates.not(new CardTypePredicate(CardType.ARTIFACT)));
} }
public StenchOfDecay(UUID ownerId, CardSetInfo setInfo) { public StenchOfDecay(UUID ownerId, CardSetInfo setInfo) {