* 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;
/**
*
@ -54,30 +55,29 @@ public class Demonfire extends CardImpl {
public Demonfire(UUID ownerId) {
super(ownerId, 60, "Demonfire", Rarity.RARE, new CardType[]{CardType.SORCERY}, "{X}{R}");
this.expansionSetCode = "DIS";
// Demonfire deals X damage to target creature or player.
// Demonfire deals X damage to target creature or player.
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
new DamageTargetEffect(new ManacostVariableValue()),
new InvertCondition(HellbentCondition.getInstance()),
"{this} deals X damage to target creature or player"));
"{this} deals X damage to target creature or player"));
// If a creature dealt damage this way would die this turn, exile it instead.
this.getSpellAbility().addEffect(new DealtDamageToCreatureBySourceDies(this, Duration.EndOfTurn));
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(
new DamageTargetEffect(new ManacostVariableValue(), false),
HellbentCondition.getInstance(),
"<br/><i>Hellbent</i> - If you have no cards in hand, {this} can't be countered by spells or abilities and the damage can't be prevented."));
"<br/><i>Hellbent</i> - If you have no cards in hand, {this} can't be countered by spells or abilities and the damage can't be prevented."));
// can't be countered
Effect effect = new CantBeCounteredSourceEffect();
effect.setText("");
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());
}