From dc573f109f16ee21d614139e8d9e47339818585a Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 24 Aug 2022 00:47:46 -0400 Subject: [PATCH] [DMU] Implemented Automatic Librarian --- .../src/mage/cards/a/AutomaticLibrarian.java | 37 +++++++++++++++++++ Mage.Sets/src/mage/sets/DominariaUnited.java | 1 + 2 files changed, 38 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/a/AutomaticLibrarian.java diff --git a/Mage.Sets/src/mage/cards/a/AutomaticLibrarian.java b/Mage.Sets/src/mage/cards/a/AutomaticLibrarian.java new file mode 100644 index 0000000000..a8ffa96647 --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/AutomaticLibrarian.java @@ -0,0 +1,37 @@ +package mage.cards.a; + +import mage.MageInt; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.effects.keyword.ScryEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class AutomaticLibrarian extends CardImpl { + + public AutomaticLibrarian(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{3}"); + + this.subtype.add(SubType.CONSTRUCT); + this.power = new MageInt(3); + this.toughness = new MageInt(2); + + // When Automatic Librarian enters the battlefield, scry 2. + this.addAbility(new EntersBattlefieldTriggeredAbility(new ScryEffect(2))); + } + + private AutomaticLibrarian(final AutomaticLibrarian card) { + super(card); + } + + @Override + public AutomaticLibrarian copy() { + return new AutomaticLibrarian(this); + } +} diff --git a/Mage.Sets/src/mage/sets/DominariaUnited.java b/Mage.Sets/src/mage/sets/DominariaUnited.java index 9e73936169..ad47c1670d 100644 --- a/Mage.Sets/src/mage/sets/DominariaUnited.java +++ b/Mage.Sets/src/mage/sets/DominariaUnited.java @@ -38,6 +38,7 @@ public final class DominariaUnited extends ExpansionSet { cards.add(new SetCardInfo("Argivian Cavalier", 4, Rarity.COMMON, mage.cards.a.ArgivianCavalier.class)); cards.add(new SetCardInfo("Aron, Benalia's Ruin", 292, Rarity.UNCOMMON, mage.cards.a.AronBenaliasRuin.class)); cards.add(new SetCardInfo("Astor, Bearer of Blades", 194, Rarity.RARE, mage.cards.a.AstorBearerOfBlades.class)); + cards.add(new SetCardInfo("Automatic Librarian", 229, Rarity.COMMON, mage.cards.a.AutomaticLibrarian.class)); cards.add(new SetCardInfo("Balduvian Atrocity", 79, Rarity.UNCOMMON, mage.cards.b.BalduvianAtrocity.class)); cards.add(new SetCardInfo("Benalish Sleeper", 8, Rarity.COMMON, mage.cards.b.BenalishSleeper.class)); cards.add(new SetCardInfo("Bog Badger", 156, Rarity.COMMON, mage.cards.b.BogBadger.class));