1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-12 17:00:08 -09:00

[CLB] Implemented Your Temple Is Under Attack

This commit is contained in:
Evan Kranzler 2022-05-26 20:58:30 -04:00
parent 0ee5e75501
commit 279e7c55a4
2 changed files with 49 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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));
}
}