* Annihilating Fire - Added missing watcher for exile ability.

This commit is contained in:
LevelX2 2015-10-31 18:00:13 +01:00
parent 46ae07be23
commit 93964407d8

View file

@ -37,6 +37,7 @@ import mage.constants.CardType;
import mage.constants.Duration; import mage.constants.Duration;
import mage.constants.Rarity; import mage.constants.Rarity;
import mage.target.common.TargetCreatureOrPlayer; import mage.target.common.TargetCreatureOrPlayer;
import mage.watchers.common.DamagedByWatcher;
/** /**
* *
@ -45,20 +46,20 @@ import mage.target.common.TargetCreatureOrPlayer;
public class AnnihilatingFire extends CardImpl { public class AnnihilatingFire extends CardImpl {
public AnnihilatingFire(UUID ownerId) { public AnnihilatingFire(UUID ownerId) {
super(ownerId, 85, "Annihilating Fire", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{1}{R}{R}"); super(ownerId, 85, "Annihilating Fire", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{1}{R}{R}");
this.expansionSetCode = "RTR"; this.expansionSetCode = "RTR";
// Annihilating Fire deals 3 damage to target creature or player.
this.getSpellAbility().addEffect(new DamageTargetEffect(3));
this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());
// Annihilating Fire deals 3 damage to target creature or player. // If a creature dealt damage this way would die this turn, exile it instead.
this.getSpellAbility().addEffect(new DamageTargetEffect(3)); this.getSpellAbility().addEffect(new DealtDamageToCreatureBySourceDies(this, Duration.EndOfTurn));
this.getSpellAbility().addTarget(new TargetCreatureOrPlayer()); this.getSpellAbility().addWatcher(new DamagedByWatcher());
}
// If a creature dealt damage this way would die this turn, exile it instead. public AnnihilatingFire(final AnnihilatingFire card) {
this.getSpellAbility().addEffect(new DealtDamageToCreatureBySourceDies(this, Duration.EndOfTurn)); super(card);
}
public AnnihilatingFire(final AnnihilatingFire card) {
super(card);
} }
@Override @Override