From d78e2b91efe680f51ba8338b9970dcac80d55a92 Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Mon, 13 Jan 2020 10:42:20 +0400 Subject: [PATCH] * Crypsis - fixed rollback error on card usage; --- Mage.Sets/src/mage/cards/c/Crypsis.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Mage.Sets/src/mage/cards/c/Crypsis.java b/Mage.Sets/src/mage/cards/c/Crypsis.java index e83468cc13..fe1cff73e7 100644 --- a/Mage.Sets/src/mage/cards/c/Crypsis.java +++ b/Mage.Sets/src/mage/cards/c/Crypsis.java @@ -1,7 +1,5 @@ - package mage.cards.c; -import java.util.UUID; import mage.abilities.effects.Effect; import mage.abilities.effects.common.UntapTargetEffect; import mage.abilities.effects.common.continuous.GainAbilityTargetEffect; @@ -11,16 +9,17 @@ import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.Duration; import mage.constants.TargetController; -import mage.filter.FilterCard; +import mage.filter.FilterPermanent; import mage.target.common.TargetControlledCreaturePermanent; +import java.util.UUID; + /** - * * @author LevelX2 */ public final class Crypsis extends CardImpl { - static final FilterCard filter = new FilterCard("creatures your opponents control"); + static final FilterPermanent filter = new FilterPermanent("creatures your opponents control"); static { filter.add(CardType.CREATURE.getPredicate()); @@ -28,8 +27,7 @@ public final class Crypsis extends CardImpl { } public Crypsis(UUID ownerId, CardSetInfo setInfo) { - super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{U}"); - + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{U}"); // Target creature you control gains protection from creatures your opponents control until end of turn. Untap it. this.getSpellAbility().addEffect(new GainAbilityTargetEffect(new ProtectionAbility(filter), Duration.EndOfTurn)); @@ -37,7 +35,7 @@ public final class Crypsis extends CardImpl { effect.setText("Untap it."); this.getSpellAbility().addEffect(effect); this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent()); - + } public Crypsis(final Crypsis card) {