From 7b8d1a3bc7b8620755d027ab055f51e930af68a0 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 20 Jun 2018 17:10:50 -0400 Subject: [PATCH] Implemented Regal Bloodlord --- .../src/mage/cards/r/RegalBloodlord.java | 57 +++++++++++++++++++ Mage.Sets/src/mage/sets/CoreSet2019.java | 1 + 2 files changed, 58 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/r/RegalBloodlord.java diff --git a/Mage.Sets/src/mage/cards/r/RegalBloodlord.java b/Mage.Sets/src/mage/cards/r/RegalBloodlord.java new file mode 100644 index 0000000000..8ef086d11f --- /dev/null +++ b/Mage.Sets/src/mage/cards/r/RegalBloodlord.java @@ -0,0 +1,57 @@ +package mage.cards.r; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.common.BeginningOfEndStepTriggeredAbility; +import mage.abilities.condition.common.YouGainedLifeCondition; +import mage.abilities.decorator.ConditionalTriggeredAbility; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.constants.SubType; +import mage.abilities.keyword.FlyingAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.ComparisonType; +import mage.constants.TargetController; +import mage.game.permanent.token.BatToken; +import mage.watchers.common.PlayerGainedLifeWatcher; + +/** + * + * @author TheElk801 + */ +public final class RegalBloodlord extends CardImpl { + + public RegalBloodlord(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{W}{B}"); + + this.subtype.add(SubType.VAMPIRE); + this.subtype.add(SubType.SOLDIER); + this.power = new MageInt(2); + this.toughness = new MageInt(4); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // At the beginning of each end step, if you gained life this turn, create a 1/1 black Bat creature token with flying. + this.addAbility(new ConditionalTriggeredAbility( + new BeginningOfEndStepTriggeredAbility( + new CreateTokenEffect(new BatToken()), + TargetController.ANY, false + ), + new YouGainedLifeCondition(ComparisonType.MORE_THAN, 0), + "At the beginning of each end step, " + + "if you gained life this turn, " + + "create a 1/1 black Bat creature token with flying." + ), new PlayerGainedLifeWatcher()); + } + + public RegalBloodlord(final RegalBloodlord card) { + super(card); + } + + @Override + public RegalBloodlord copy() { + return new RegalBloodlord(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CoreSet2019.java b/Mage.Sets/src/mage/sets/CoreSet2019.java index f8d4f5364e..4308199533 100644 --- a/Mage.Sets/src/mage/sets/CoreSet2019.java +++ b/Mage.Sets/src/mage/sets/CoreSet2019.java @@ -163,6 +163,7 @@ public final class CoreSet2019 extends ExpansionSet { cards.add(new SetCardInfo("Reassembling Skeleton", 116, Rarity.UNCOMMON, mage.cards.r.ReassemblingSkeleton.class)); cards.add(new SetCardInfo("Reclamation Sage", 196, Rarity.UNCOMMON, mage.cards.r.ReclamationSage.class)); cards.add(new SetCardInfo("Recollect", 197, Rarity.UNCOMMON, mage.cards.r.Recollect.class)); + cards.add(new SetCardInfo("Regal Bloodlord", 222, Rarity.UNCOMMON, mage.cards.r.RegalBloodlord.class)); cards.add(new SetCardInfo("Reliquary Tower", 254, Rarity.UNCOMMON, mage.cards.r.ReliquaryTower.class)); cards.add(new SetCardInfo("Remorseful Cleric", 33, Rarity.RARE, mage.cards.r.RemorsefulCleric.class)); cards.add(new SetCardInfo("Resplendent Angel", 34, Rarity.MYTHIC, mage.cards.r.ResplendentAngel.class));