From dc8380ce44e8c62adc0d98e2b9c8ac1a1945b845 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Thu, 2 Jan 2014 12:55:41 +0100 Subject: [PATCH] Using correct CantBeBlockedTargetEffect to implement Touch of Invisibility. --- Mage.Sets/src/mage/sets/odyssey/TouchOfInvisibility.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Mage.Sets/src/mage/sets/odyssey/TouchOfInvisibility.java b/Mage.Sets/src/mage/sets/odyssey/TouchOfInvisibility.java index f4b6875e62..9608149c3b 100644 --- a/Mage.Sets/src/mage/sets/odyssey/TouchOfInvisibility.java +++ b/Mage.Sets/src/mage/sets/odyssey/TouchOfInvisibility.java @@ -29,8 +29,7 @@ package mage.sets.odyssey; import java.util.UUID; import mage.abilities.effects.common.DrawCardControllerEffect; -import mage.abilities.effects.common.continious.GainAbilityTargetEffect; -import mage.abilities.keyword.UnblockableAbility; +import mage.abilities.effects.common.combat.CantBeBlockedTargetEffect; import mage.cards.CardImpl; import mage.constants.CardType; import mage.constants.Duration; @@ -50,10 +49,9 @@ public class TouchOfInvisibility extends CardImpl { this.color.setBlue(true); // Target creature is unblockable this turn. - this.getSpellAbility().addEffect(new GainAbilityTargetEffect(new UnblockableAbility(), Duration.EndOfTurn)); + this.getSpellAbility().addEffect(new CantBeBlockedTargetEffect(Duration.EndOfTurn)); this.getSpellAbility().addTarget(new TargetCreaturePermanent(true)); - - // + // Draw a card. this.getSpellAbility().addEffect(new DrawCardControllerEffect(1)); }