diff --git a/Mage.Sets/src/mage/cards/a/AccomplishedAlchemist.java b/Mage.Sets/src/mage/cards/a/AccomplishedAlchemist.java new file mode 100644 index 0000000000..3ea63de1b0 --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/AccomplishedAlchemist.java @@ -0,0 +1,49 @@ +package mage.cards.a; + +import mage.MageInt; +import mage.Mana; +import mage.abilities.costs.common.TapSourceCost; +import mage.abilities.dynamicvalue.common.ControllerGotLifeCount; +import mage.abilities.mana.AnyColorManaAbility; +import mage.abilities.mana.DynamicManaAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.watchers.common.PlayerGainedLifeWatcher; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class AccomplishedAlchemist extends CardImpl { + + public AccomplishedAlchemist(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{G}"); + + this.subtype.add(SubType.ELF); + this.subtype.add(SubType.DRUID); + this.power = new MageInt(2); + this.toughness = new MageInt(5); + + // {T}: Add one mana of any color. + this.addAbility(new AnyColorManaAbility()); + + // {T}: Add X mana of any one color, where X is the amount of life you gained this turn. + this.addAbility(new DynamicManaAbility( + new Mana(0, 0, 0, 0, 0, 0, 1, 0), + ControllerGotLifeCount.instance, new TapSourceCost(), "Add X mana " + + "of any one color, where X is the amount of life you gained this turn", true + ).addHint(ControllerGotLifeCount.getHint()), new PlayerGainedLifeWatcher()); + } + + private AccomplishedAlchemist(final AccomplishedAlchemist card) { + super(card); + } + + @Override + public AccomplishedAlchemist copy() { + return new AccomplishedAlchemist(this); + } +} diff --git a/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java b/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java index 9e6d52f4d2..a47c61a91d 100644 --- a/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java +++ b/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java @@ -32,6 +32,7 @@ public final class StrixhavenSchoolOfMages extends ExpansionSet { this.ratioBoosterMythic = 7.4; this.maxCardNumberInBooster = 275; + cards.add(new SetCardInfo("Accomplished Alchemist", 119, Rarity.RARE, mage.cards.a.AccomplishedAlchemist.class)); cards.add(new SetCardInfo("Aether Helix", 162, Rarity.UNCOMMON, mage.cards.a.AetherHelix.class)); cards.add(new SetCardInfo("Ageless Guardian", 8, Rarity.COMMON, mage.cards.a.AgelessGuardian.class)); cards.add(new SetCardInfo("Archmage Emeritus", 37, Rarity.RARE, mage.cards.a.ArchmageEmeritus.class));