* Demonfire - Added missing watcher for exile ability.

This commit is contained in:
LevelX2 2015-10-31 18:01:18 +01:00
parent bc409eccdc
commit a5730d8359

View file

@ -44,6 +44,7 @@ import mage.constants.Duration;
import mage.constants.Rarity;
import mage.constants.Zone;
import mage.target.common.TargetCreatureOrPlayer;
import mage.watchers.common.DamagedByWatcher;
/**
*
@ -55,8 +56,6 @@ public class Demonfire extends CardImpl {
super(ownerId, 60, "Demonfire", Rarity.RARE, new CardType[]{CardType.SORCERY}, "{X}{R}");
this.expansionSetCode = "DIS";
// Demonfire deals X damage to target creature or player.
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
new DamageTargetEffect(new ManacostVariableValue()),
@ -65,6 +64,7 @@ public class Demonfire extends CardImpl {
// If a creature dealt damage this way would die this turn, exile it instead.
this.getSpellAbility().addEffect(new DealtDamageToCreatureBySourceDies(this, Duration.EndOfTurn));
this.getSpellAbility().addWatcher(new DamagedByWatcher());
// Hellbent - If you have no cards in hand, Demonfire can't be countered by spells or abilities and the damage can't be prevented.
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
@ -75,7 +75,7 @@ public class Demonfire extends CardImpl {
Effect effect = new CantBeCounteredSourceEffect();
effect.setText("");
this.addAbility(new SimpleStaticAbility(Zone.STACK, new ConditionalContinuousRuleModifyingEffect(
(CantBeCounteredSourceEffect)effect,
(CantBeCounteredSourceEffect) effect,
HellbentCondition.getInstance())));
this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());