* Tangle Wire - fix that enchantments could be tapped

This commit is contained in:
Quercitron 2014-07-04 18:50:50 +04:00
parent 3fa12ee2bb
commit 133580bf70

View file

@ -41,6 +41,7 @@ import mage.constants.Zone;
import mage.counters.CounterType;
import mage.filter.common.FilterControlledPermanent;
import mage.filter.predicate.Predicates;
import mage.filter.predicate.mageobject.CardTypePredicate;
import mage.filter.predicate.permanent.TappedPredicate;
import mage.game.Game;
import mage.game.permanent.Permanent;
@ -78,6 +79,10 @@ class TangleWireEffect extends OneShotEffect {
private static final FilterControlledPermanent filter = new FilterControlledPermanent("untapped artifact, creature, or land he or she controls");
static{
filter.add(Predicates.not(new TappedPredicate()));
filter.add(Predicates.or(
new CardTypePredicate(CardType.ARTIFACT),
new CardTypePredicate(CardType.CREATURE),
new CardTypePredicate(CardType.LAND)));
}
TangleWireEffect() {