mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +00:00
Using correct CantBeBlockedTargetEffect to implement Touch of Invisibility.
This commit is contained in:
parent
383bc47ffd
commit
dc8380ce44
1 changed files with 3 additions and 5 deletions
|
@ -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<TouchOfInvisibility> {
|
|||
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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue