mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
[TDM] Implement Osseous Exhale
This commit is contained in:
parent
4440c7cdcb
commit
3818d85a0b
2 changed files with 44 additions and 0 deletions
43
Mage.Sets/src/mage/cards/o/OsseousExhale.java
Normal file
43
Mage.Sets/src/mage/cards/o/OsseousExhale.java
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
package mage.cards.o;
|
||||
|
||||
import mage.abilities.condition.common.BeheldDragonCondition;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.abilities.keyword.BeholdDragonAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.target.common.TargetAttackingOrBlockingCreature;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class OsseousExhale extends CardImpl {
|
||||
|
||||
public OsseousExhale(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{W}");
|
||||
|
||||
// As an additional cost to cast this spell, you may behold a Dragon.
|
||||
this.addAbility(new BeholdDragonAbility());
|
||||
|
||||
// Osseous Exhale deals 5 damage to target attacking or blocking creature. If a Dragon was beheld, you gain 2 life.
|
||||
this.getSpellAbility().addEffect(new DamageTargetEffect(5));
|
||||
this.getSpellAbility().addTarget(new TargetAttackingOrBlockingCreature());
|
||||
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
||||
new GainLifeEffect(2), BeheldDragonCondition.instance,
|
||||
"if a Dragon was beheld, you gain 2 life"
|
||||
));
|
||||
}
|
||||
|
||||
private OsseousExhale(final OsseousExhale card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public OsseousExhale copy() {
|
||||
return new OsseousExhale(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -100,6 +100,7 @@ public final class TarkirDragonstorm extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Neriv, Heart of the Storm", 210, Rarity.MYTHIC, mage.cards.n.NerivHeartOfTheStorm.class));
|
||||
cards.add(new SetCardInfo("Nomad Outpost", 263, Rarity.UNCOMMON, mage.cards.n.NomadOutpost.class));
|
||||
cards.add(new SetCardInfo("Opulent Palace", 264, Rarity.UNCOMMON, mage.cards.o.OpulentPalace.class));
|
||||
cards.add(new SetCardInfo("Osseous Exhale", 17, Rarity.COMMON, mage.cards.o.OsseousExhale.class));
|
||||
cards.add(new SetCardInfo("Piercing Exhale", 151, Rarity.COMMON, mage.cards.p.PiercingExhale.class));
|
||||
cards.add(new SetCardInfo("Plains", 277, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Qarsi Revenant", 86, Rarity.RARE, mage.cards.q.QarsiRevenant.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue