From b0472db851c1e6323a4db67755b845bf234e97bb Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 4 Nov 2020 17:18:34 -0500 Subject: [PATCH] [CMR] Implemented Dawnglade Regent --- .../src/mage/cards/d/DawngladeRegent.java | 51 +++++++++++++++++++ Mage.Sets/src/mage/sets/CommanderLegends.java | 1 + 2 files changed, 52 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/d/DawngladeRegent.java diff --git a/Mage.Sets/src/mage/cards/d/DawngladeRegent.java b/Mage.Sets/src/mage/cards/d/DawngladeRegent.java new file mode 100644 index 00000000000..58c08d6c3ae --- /dev/null +++ b/Mage.Sets/src/mage/cards/d/DawngladeRegent.java @@ -0,0 +1,51 @@ +package mage.cards.d; + +import mage.MageInt; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.condition.common.MonarchIsSourceControllerCondition; +import mage.abilities.decorator.ConditionalContinuousEffect; +import mage.abilities.effects.common.BecomesMonarchSourceEffect; +import mage.abilities.effects.common.continuous.GainAbilityControlledEffect; +import mage.abilities.keyword.HexproofAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class DawngladeRegent extends CardImpl { + + public DawngladeRegent(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{5}{G}{G}"); + + this.subtype.add(SubType.ELK); + this.power = new MageInt(8); + this.toughness = new MageInt(8); + + // When Dawnglade Regent enters the battlefield, you become the monarch. + this.addAbility(new EntersBattlefieldTriggeredAbility(new BecomesMonarchSourceEffect())); + + // As long as you're the monarch, permanents you control have hexproof. + this.addAbility(new SimpleStaticAbility(new ConditionalContinuousEffect( + new GainAbilityControlledEffect( + HexproofAbility.getInstance(), Duration.WhileOnBattlefield + ), MonarchIsSourceControllerCondition.instance, + "as long as you're the monarch, permanents you control have hexproof" + ))); + } + + private DawngladeRegent(final DawngladeRegent card) { + super(card); + } + + @Override + public DawngladeRegent copy() { + return new DawngladeRegent(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CommanderLegends.java b/Mage.Sets/src/mage/sets/CommanderLegends.java index beb6bc30d41..e839d132c13 100644 --- a/Mage.Sets/src/mage/sets/CommanderLegends.java +++ b/Mage.Sets/src/mage/sets/CommanderLegends.java @@ -78,6 +78,7 @@ public final class CommanderLegends extends ExpansionSet { cards.add(new SetCardInfo("Court of Grace", 16, Rarity.RARE, mage.cards.c.CourtOfGrace.class)); cards.add(new SetCardInfo("Crow of Dark Tidings", 115, Rarity.COMMON, mage.cards.c.CrowOfDarkTidings.class)); cards.add(new SetCardInfo("Cuombajj Witches", 116, Rarity.UNCOMMON, mage.cards.c.CuombajjWitches.class)); + cards.add(new SetCardInfo("Dawnglade Regent", 222, Rarity.RARE, mage.cards.d.DawngladeRegent.class)); cards.add(new SetCardInfo("Demonic Lore", 118, Rarity.UNCOMMON, mage.cards.d.DemonicLore.class)); cards.add(new SetCardInfo("Deranged Assistant", 65, Rarity.COMMON, mage.cards.d.DerangedAssistant.class)); cards.add(new SetCardInfo("Derevi, Empyrial Tactician", 518, Rarity.MYTHIC, mage.cards.d.DereviEmpyrialTactician.class));