forked from External/mage
39 lines
1.3 KiB
Java
39 lines
1.3 KiB
Java
package mage.cards.a;
|
|
|
|
import java.util.UUID;
|
|
import mage.abilities.effects.common.DamageTargetEffect;
|
|
import mage.abilities.effects.common.replacement.DealtDamageToCreatureBySourceDies;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.Duration;
|
|
import mage.target.common.TargetAnyTarget;
|
|
import mage.watchers.common.DamagedByWatcher;
|
|
|
|
/**
|
|
*
|
|
* @author LevelX2
|
|
*/
|
|
public final class AnnihilatingFire extends CardImpl {
|
|
|
|
public AnnihilatingFire(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{R}{R}");
|
|
|
|
// Annihilating Fire deals 3 damage to any target.
|
|
this.getSpellAbility().addEffect(new DamageTargetEffect(3));
|
|
this.getSpellAbility().addTarget(new TargetAnyTarget());
|
|
|
|
// 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(false));
|
|
}
|
|
|
|
private AnnihilatingFire(final AnnihilatingFire card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public AnnihilatingFire copy() {
|
|
return new AnnihilatingFire(this);
|
|
}
|
|
}
|