* Abrupt Decay - Fixed the not working can't be countered ability (Issue #238).

This commit is contained in:
LevelX2 2013-06-14 00:31:08 +02:00
parent 058fa66167
commit b3c3c571f4

View file

@ -31,6 +31,10 @@ package mage.sets.returntoravnica;
import java.util.UUID;
import mage.Constants.CardType;
import mage.Constants.Rarity;
import mage.Constants.Zone;
import mage.abilities.Ability;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.Effect;
import mage.abilities.effects.common.CantCounterSourceEffect;
import mage.abilities.effects.common.DestroyTargetEffect;
import mage.cards.CardImpl;
@ -58,7 +62,11 @@ public class AbruptDecay extends CardImpl<AbruptDecay> {
this.color.setBlack(true);
// Abrupt Decay can't be countered by spells or abilities.
this.getSpellAbility().addEffect(new CantCounterSourceEffect());
Effect effect = new CantCounterSourceEffect();
effect.setText("{this} can't be countered by spells or abilities");
Ability ability = new SimpleStaticAbility(Zone.STACK,effect);
ability.setRuleAtTheTop(true);
this.addAbility(ability);
// Destroy target nonland permanent with converted mana cost 3 or less.
this.getSpellAbility().addEffect(new DestroyTargetEffect());