forked from External/mage
[TDM] fix Molten Exhale
* fix behold ability having no effects * fixes #13564
This commit is contained in:
parent
827ef33729
commit
e993d4c296
1 changed files with 16 additions and 6 deletions
|
|
@ -1,11 +1,17 @@
|
|||
package mage.cards.m;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.PayMoreToCastAsThoughtItHadFlashAbility;
|
||||
import mage.abilities.costs.Cost;
|
||||
import mage.abilities.costs.CostImpl;
|
||||
import mage.abilities.costs.CostsImpl;
|
||||
import mage.abilities.costs.common.BeholdDragonCost;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.target.Target;
|
||||
import mage.target.common.TargetCreatureOrPlaneswalker;
|
||||
|
||||
import java.util.UUID;
|
||||
|
|
@ -19,14 +25,18 @@ public final class MoltenExhale extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{R}");
|
||||
|
||||
// You may cast this spell as though it had flash if you behold a Dragon as an additional cost to cast it.
|
||||
this.addAbility(new PayMoreToCastAsThoughtItHadFlashAbility(
|
||||
this, new BeholdDragonCost(), "you may cast this spell as though " +
|
||||
"it had flash if you behold a Dragon as an additional cost to cast it"
|
||||
));
|
||||
Ability ability = new PayMoreToCastAsThoughtItHadFlashAbility(this, new BeholdDragonCost(),
|
||||
"you may cast this spell as though it had flash if you behold a Dragon as an additional cost to cast it.");
|
||||
Target target = new TargetCreatureOrPlaneswalker();
|
||||
Effect effect = new DamageTargetEffect(4);
|
||||
ability.addEffect(effect);
|
||||
ability.addTarget(target);
|
||||
ability.setAdditionalCostsRuleVisible(false);
|
||||
this.addAbility(ability);
|
||||
|
||||
// Molten Exhale deals 4 damage to target creature or planeswalker.
|
||||
this.getSpellAbility().addEffect(new DamageTargetEffect(4));
|
||||
this.getSpellAbility().addTarget(new TargetCreatureOrPlaneswalker());
|
||||
this.getSpellAbility().addEffect(effect);
|
||||
this.getSpellAbility().addTarget(target);
|
||||
}
|
||||
|
||||
private MoltenExhale(final MoltenExhale card) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue