diff --git a/Mage.Sets/src/mage/cards/c/ClaimTheFirstborn.java b/Mage.Sets/src/mage/cards/c/ClaimTheFirstborn.java new file mode 100644 index 00000000000..8d328a64278 --- /dev/null +++ b/Mage.Sets/src/mage/cards/c/ClaimTheFirstborn.java @@ -0,0 +1,51 @@ +package mage.cards.c; + +import mage.abilities.effects.common.UntapTargetEffect; +import mage.abilities.effects.common.continuous.GainAbilityTargetEffect; +import mage.abilities.effects.common.continuous.GainControlTargetEffect; +import mage.abilities.keyword.HasteAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.ComparisonType; +import mage.constants.Duration; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterCreaturePermanent; +import mage.filter.predicate.mageobject.ConvertedManaCostPredicate; +import mage.target.TargetPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ClaimTheFirstborn extends CardImpl { + + private static final FilterPermanent filter + = new FilterCreaturePermanent("creature with converted mana cost 3 or less"); + + static { + filter.add(new ConvertedManaCostPredicate(ComparisonType.FEWER_THAN, 4)); + } + + public ClaimTheFirstborn(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{R}"); + + // Gain control of target creature with converted mana cost 3 or less until end of turn. Untap that creature. It gains haste until end of turn. + this.getSpellAbility().addEffect(new GainControlTargetEffect(Duration.EndOfTurn)); + this.getSpellAbility().addEffect(new UntapTargetEffect() + .setText("Untap that creature")); + this.getSpellAbility().addEffect(new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn) + .setText("It gains haste until end of turn.")); + this.getSpellAbility().addTarget(new TargetPermanent(filter)); + } + + private ClaimTheFirstborn(final ClaimTheFirstborn card) { + super(card); + } + + @Override + public ClaimTheFirstborn copy() { + return new ClaimTheFirstborn(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ThroneOfEldraine.java b/Mage.Sets/src/mage/sets/ThroneOfEldraine.java index ce3602dcb39..9147dc0166f 100644 --- a/Mage.Sets/src/mage/sets/ThroneOfEldraine.java +++ b/Mage.Sets/src/mage/sets/ThroneOfEldraine.java @@ -43,6 +43,7 @@ public final class ThroneOfEldraine extends ExpansionSet { cards.add(new SetCardInfo("Burning-Yard Trainer", 117, Rarity.UNCOMMON, mage.cards.b.BurningYardTrainer.class)); cards.add(new SetCardInfo("Chittering Witch", 319, Rarity.RARE, mage.cards.c.ChitteringWitch.class)); cards.add(new SetCardInfo("Chulane, Teller of Tales", 326, Rarity.MYTHIC, mage.cards.c.ChulaneTellerOfTales.class)); + cards.add(new SetCardInfo("Claim the Firstborn", 118, Rarity.UNCOMMON, mage.cards.c.ClaimTheFirstborn.class)); cards.add(new SetCardInfo("Command Tower", 333, Rarity.COMMON, mage.cards.c.CommandTower.class)); cards.add(new SetCardInfo("Corridor Monitor", 41, Rarity.COMMON, mage.cards.c.CorridorMonitor.class)); cards.add(new SetCardInfo("Crystal Slipper", 119, Rarity.COMMON, mage.cards.c.CrystalSlipper.class)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index 24abe59b1d0..950e42004bf 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -36039,6 +36039,7 @@ Witch's Vengeance|Throne of Eldraine|111|R|{1}{B}{B}|Sorcery|||Creatures of the Blow Your House Down|Throne of Eldraine|114|C|{2}{R}|Sorcery|||Up to three target creatures can't block this turn. Destroy any of them that are Walls.| Brimstone Trebuchet|Throne of Eldraine|116|C|{2}{R}|Artifact Creature - Wall|1|3|Defender, reach${T}: Brimstone Trebuchet deals 1 damage to each opponent.$Whenever a Knight enters the battlefield under your control, untap Brimstone Trebuchet.| Burning-Yard Trainer|Throne of Eldraine|117|U|{4}{R}|Creature - Human Knight|3|3|Trample, haste$When Burning-Yard Trainer enters the battlefield, another target Knight you control gets +2/+2 and gains trample and haste until end of turn.| +Claim the Firstborn|Throne of Eldraine|118|U|{R}|Sorcery|||Gain control of target creature with converted mana cost 3 or less until end of turn. Untap that creature. It gains haste until end of turn.| Crystal Slipper|Throne of Eldraine|119|C|{1}{R}|Artifact - Equipment|||Equipped creature gets +1/+0 and has haste.$Equip {1}| Embercleave|Throne of Eldraine|120|M|{4}{R}{R}|Legendary Artifact - Equipment|||Flash$This spell costs {1} less to cast for each attacking creature you control.$When Embercleave enters the battlefield, attach it to target creature you control.$Equipped creature gets +1/+1 and has double strike and trample.$Equip {3}| Embereth Paladin|Throne of Eldraine|121|C|{3}{R}|Creature - Human Knight|4|1|Haste$Adamant — If at least three red mana was spent to cast this spell, Embereth Paladin enters the battlefield with a +1/+1 counter on it.|