From aad92581ce869afb6c2e91ea9ad6f2499915f448 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Mon, 7 Apr 2025 12:31:29 -0400 Subject: [PATCH] [TDM] Implement Ureni, the Song Unending --- .../mage/cards/u/UreniTheSongUnending.java | 65 +++++++++++++++++++ .../src/mage/sets/TarkirDragonstorm.java | 1 + 2 files changed, 66 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/u/UreniTheSongUnending.java diff --git a/Mage.Sets/src/mage/cards/u/UreniTheSongUnending.java b/Mage.Sets/src/mage/cards/u/UreniTheSongUnending.java new file mode 100644 index 00000000000..b1bd25b98a3 --- /dev/null +++ b/Mage.Sets/src/mage/cards/u/UreniTheSongUnending.java @@ -0,0 +1,65 @@ +package mage.cards.u; + +import mage.MageInt; +import mage.ObjectColor; +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.dynamicvalue.common.LandsYouControlCount; +import mage.abilities.effects.common.DamageMultiEffect; +import mage.abilities.hint.common.LandsYouControlHint; +import mage.abilities.keyword.FlyingAbility; +import mage.abilities.keyword.ProtectionAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.SuperType; +import mage.constants.TargetController; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterCreatureOrPlaneswalkerPermanent; +import mage.target.common.TargetPermanentAmount; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class UreniTheSongUnending extends CardImpl { + + private static final FilterPermanent filter + = new FilterCreatureOrPlaneswalkerPermanent("creatures and/or planeswalkers your opponents control"); + + static { + filter.add(TargetController.OPPONENT.getControllerPredicate()); + } + + public UreniTheSongUnending(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{5}{G}{U}{R}"); + + this.supertype.add(SuperType.LEGENDARY); + this.subtype.add(SubType.SPIRIT); + this.subtype.add(SubType.DRAGON); + this.power = new MageInt(10); + this.toughness = new MageInt(10); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // Protection from white and from black + this.addAbility(ProtectionAbility.from(ObjectColor.WHITE, ObjectColor.BLACK)); + + // When Ureni enters, it deals X damage divided as you choose among any number of target creatures and/or planeswalkers your opponents control, where X is the number of lands you control. + Ability ability = new EntersBattlefieldTriggeredAbility(new DamageMultiEffect("it")); + ability.addTarget(new TargetPermanentAmount(LandsYouControlCount.instance, 0, filter)); + this.addAbility(ability.addHint(LandsYouControlHint.instance)); + } + + private UreniTheSongUnending(final UreniTheSongUnending card) { + super(card); + } + + @Override + public UreniTheSongUnending copy() { + return new UreniTheSongUnending(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TarkirDragonstorm.java b/Mage.Sets/src/mage/sets/TarkirDragonstorm.java index 1909add4f1f..c28827e6fdc 100644 --- a/Mage.Sets/src/mage/sets/TarkirDragonstorm.java +++ b/Mage.Sets/src/mage/sets/TarkirDragonstorm.java @@ -238,6 +238,7 @@ public final class TarkirDragonstorm extends ExpansionSet { cards.add(new SetCardInfo("Unrooted Ancestor", 96, Rarity.UNCOMMON, mage.cards.u.UnrootedAncestor.class)); cards.add(new SetCardInfo("Unsparing Boltcaster", 130, Rarity.UNCOMMON, mage.cards.u.UnsparingBoltcaster.class)); cards.add(new SetCardInfo("Ureni's Rebuff", 63, Rarity.UNCOMMON, mage.cards.u.UrenisRebuff.class)); + cards.add(new SetCardInfo("Ureni, the Song Unending", 233, Rarity.MYTHIC, mage.cards.u.UreniTheSongUnending.class)); cards.add(new SetCardInfo("Venerated Stormsinger", 97, Rarity.UNCOMMON, mage.cards.v.VeneratedStormsinger.class)); cards.add(new SetCardInfo("Veteran Ice Climber", 64, Rarity.UNCOMMON, mage.cards.v.VeteranIceClimber.class)); cards.add(new SetCardInfo("Voice of Victory", 33, Rarity.RARE, mage.cards.v.VoiceOfVictory.class));