diff --git a/Mage.Sets/src/mage/cards/y/YourTempleIsUnderAttack.java b/Mage.Sets/src/mage/cards/y/YourTempleIsUnderAttack.java new file mode 100644 index 00000000000..2cdc2bbe8fb --- /dev/null +++ b/Mage.Sets/src/mage/cards/y/YourTempleIsUnderAttack.java @@ -0,0 +1,48 @@ +package mage.cards.y; + +import mage.abilities.Mode; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.DrawCardTargetEffect; +import mage.abilities.effects.common.continuous.GainAbilityControlledEffect; +import mage.abilities.keyword.IndestructibleAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.filter.StaticFilters; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class YourTempleIsUnderAttack extends CardImpl { + + public YourTempleIsUnderAttack(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{W}"); + + // Choose one — + // • Pray for Protection — Creatures you control gain indestructible until end of turn. + this.getSpellAbility().addEffect(new GainAbilityControlledEffect( + IndestructibleAbility.getInstance(), Duration.EndOfTurn, + StaticFilters.FILTER_PERMANENT_CREATURES + )); + this.getSpellAbility().withFirstModeFlavorWord("Pray for Protection"); + + // • Strike a Deal — You and target opponent each draw two cards. + this.getSpellAbility().addMode(new Mode( + new DrawCardSourceControllerEffect(1).setText("you") + ).addEffect(new DrawCardTargetEffect(2) + .setText("and target opponent each draw two cards") + ).withFlavorWord("Strike a Deal")); + } + + private YourTempleIsUnderAttack(final YourTempleIsUnderAttack card) { + super(card); + } + + @Override + public YourTempleIsUnderAttack copy() { + return new YourTempleIsUnderAttack(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java b/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java index f1e2475fe72..d6b86b72f0f 100644 --- a/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java +++ b/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java @@ -203,6 +203,7 @@ public final class CommanderLegendsBattleForBaldursGate extends ExpansionSet { cards.add(new SetCardInfo("You're Confronted by Robbers", 53, Rarity.COMMON, mage.cards.y.YoureConfrontedByRobbers.class)); cards.add(new SetCardInfo("Young Blue Dragon", 106, Rarity.COMMON, mage.cards.y.YoungBlueDragon.class)); cards.add(new SetCardInfo("Young Red Dragon", 210, Rarity.COMMON, mage.cards.y.YoungRedDragon.class)); + cards.add(new SetCardInfo("Your Temple Is Under Attack", 52, Rarity.COMMON, mage.cards.y.YourTempleIsUnderAttack.class)); cards.add(new SetCardInfo("Zevlor, Elturel Exile", 296, Rarity.RARE, mage.cards.z.ZevlorElturelExile.class)); } }