mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +00:00
* Abrupt Decay - Fixed the not working can't be countered ability (Issue #238).
This commit is contained in:
parent
058fa66167
commit
b3c3c571f4
1 changed files with 9 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue