mirror of
https://github.com/correl/mage.git
synced 2024-11-25 11:09:53 +00:00
* Crypsis - fixed rollback error on card usage;
This commit is contained in:
parent
69e52815b6
commit
d78e2b91ef
1 changed files with 6 additions and 8 deletions
|
@ -1,7 +1,5 @@
|
||||||
|
|
||||||
package mage.cards.c;
|
package mage.cards.c;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
import mage.abilities.effects.Effect;
|
import mage.abilities.effects.Effect;
|
||||||
import mage.abilities.effects.common.UntapTargetEffect;
|
import mage.abilities.effects.common.UntapTargetEffect;
|
||||||
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
||||||
|
@ -11,16 +9,17 @@ import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.Duration;
|
import mage.constants.Duration;
|
||||||
import mage.constants.TargetController;
|
import mage.constants.TargetController;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterPermanent;
|
||||||
import mage.target.common.TargetControlledCreaturePermanent;
|
import mage.target.common.TargetControlledCreaturePermanent;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @author LevelX2
|
* @author LevelX2
|
||||||
*/
|
*/
|
||||||
public final class Crypsis extends CardImpl {
|
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 {
|
static {
|
||||||
filter.add(CardType.CREATURE.getPredicate());
|
filter.add(CardType.CREATURE.getPredicate());
|
||||||
|
@ -30,7 +29,6 @@ public final class Crypsis extends CardImpl {
|
||||||
public Crypsis(UUID ownerId, CardSetInfo setInfo) {
|
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.
|
// 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));
|
this.getSpellAbility().addEffect(new GainAbilityTargetEffect(new ProtectionAbility(filter), Duration.EndOfTurn));
|
||||||
Effect effect = new UntapTargetEffect();
|
Effect effect = new UntapTargetEffect();
|
||||||
|
|
Loading…
Reference in a new issue