mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
* Demonfire - Added missing watcher for exile ability.
This commit is contained in:
parent
bc409eccdc
commit
a5730d8359
1 changed files with 11 additions and 11 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue