* Topple - Fixed filter handling that modified staticFilters.

This commit is contained in:
LevelX2 2018-06-10 09:16:21 +02:00
parent 174e3794fb
commit 984bc0871b

View file

@ -1,4 +1,3 @@
package mage.cards.t;
import java.util.HashSet;
@ -11,10 +10,9 @@ import mage.abilities.effects.common.ExileTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.predicate.mageobject.CardTypePredicate;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.target.TargetPermanent;
import mage.target.common.TargetCreaturePermanent;
/**
*
@ -40,11 +38,10 @@ public final class Topple extends CardImpl {
}
}
class ToppleTargetCreature extends TargetPermanent {
class ToppleTargetCreature extends TargetCreaturePermanent {
public ToppleTargetCreature() {
super();
filter.add(new CardTypePredicate(CardType.CREATURE));
setTargetName("creature with the greatest power among creatures on the battlefield");
}