From 6df0bf0220888954d005d28448e676b305261a6c Mon Sep 17 00:00:00 2001 From: Susucre <34709007+Susucre@users.noreply.github.com> Date: Fri, 18 Aug 2023 18:15:33 +0200 Subject: [PATCH] [WOE] Implement Chancellor of Tales (#10873) --- .../src/mage/cards/c/ChancellorOfTales.java | 54 +++++++++++++++++++ Mage.Sets/src/mage/sets/WildsOfEldraine.java | 1 + 2 files changed, 55 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/c/ChancellorOfTales.java diff --git a/Mage.Sets/src/mage/cards/c/ChancellorOfTales.java b/Mage.Sets/src/mage/cards/c/ChancellorOfTales.java new file mode 100644 index 00000000000..1a939eee562 --- /dev/null +++ b/Mage.Sets/src/mage/cards/c/ChancellorOfTales.java @@ -0,0 +1,54 @@ +package mage.cards.c; + +import mage.MageInt; +import mage.abilities.common.SpellCastControllerTriggeredAbility; +import mage.abilities.effects.common.CopyTargetSpellEffect; +import mage.abilities.keyword.FlyingAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SetTargetPointer; +import mage.constants.SubType; +import mage.filter.FilterSpell; + +import java.util.UUID; + +/** + * @author Susucr + */ +public final class ChancellorOfTales extends CardImpl { + + private static final FilterSpell filter + = new FilterSpell("an Adventure spell"); + + static { + filter.add(SubType.ADVENTURE.getPredicate()); + } + + public ChancellorOfTales(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{U}"); + + this.subtype.add(SubType.FAERIE); + this.subtype.add(SubType.ADVISOR); + this.power = new MageInt(2); + this.toughness = new MageInt(3); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // Whenever you cast an Adventure spell, you may copy it. You may choose new targets for the copy. + this.addAbility(new SpellCastControllerTriggeredAbility( + new CopyTargetSpellEffect(true).withSpellName("it"), + filter, true, SetTargetPointer.SPELL + )); + } + + private ChancellorOfTales(final ChancellorOfTales card) { + super(card); + } + + @Override + public ChancellorOfTales copy() { + return new ChancellorOfTales(this); + } +} diff --git a/Mage.Sets/src/mage/sets/WildsOfEldraine.java b/Mage.Sets/src/mage/sets/WildsOfEldraine.java index 0ad803e949f..066c867ba30 100644 --- a/Mage.Sets/src/mage/sets/WildsOfEldraine.java +++ b/Mage.Sets/src/mage/sets/WildsOfEldraine.java @@ -28,6 +28,7 @@ public final class WildsOfEldraine extends ExpansionSet { cards.add(new SetCardInfo("Bitter Chill", 44, Rarity.UNCOMMON, mage.cards.b.BitterChill.class)); cards.add(new SetCardInfo("Break the Spell", 5, Rarity.COMMON, mage.cards.b.BreakTheSpell.class)); cards.add(new SetCardInfo("Callous Sell-Sword", 221, Rarity.UNCOMMON, mage.cards.c.CallousSellSword.class)); + cards.add(new SetCardInfo("Chancellor of Tales", 45, Rarity.UNCOMMON, mage.cards.c.ChancellorOfTales.class)); cards.add(new SetCardInfo("Conceited Witch", 84, Rarity.COMMON, mage.cards.c.ConceitedWitch.class)); cards.add(new SetCardInfo("Cruel Somnophage", 222, Rarity.RARE, mage.cards.c.CruelSomnophage.class)); cards.add(new SetCardInfo("Cursed Courtier", 9, Rarity.UNCOMMON, mage.cards.c.CursedCourtier.class));