From 1eb7f57543dcf6fb42a0ff4b835d4b73a210b287 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 16 Jun 2020 19:18:18 -0400 Subject: [PATCH] Implemented Read the Tides --- Mage.Sets/src/mage/cards/r/ReadTheTides.java | 39 ++++++++++++++++++++ Mage.Sets/src/mage/sets/CoreSet2021.java | 1 + 2 files changed, 40 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/r/ReadTheTides.java diff --git a/Mage.Sets/src/mage/cards/r/ReadTheTides.java b/Mage.Sets/src/mage/cards/r/ReadTheTides.java new file mode 100644 index 0000000000..d3073cfd94 --- /dev/null +++ b/Mage.Sets/src/mage/cards/r/ReadTheTides.java @@ -0,0 +1,39 @@ +package mage.cards.r; + +import mage.abilities.Mode; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.ReturnToHandTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ReadTheTides extends CardImpl { + + public ReadTheTides(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{5}{U}"); + + // Choose one — + // • Draw three cards. + this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(3)); + + // • Return up to two target creatures to their owners' hands. + Mode mode = new Mode(new ReturnToHandTargetEffect()); + mode.addTarget(new TargetCreaturePermanent(0, 1)); + this.getSpellAbility().addMode(mode); + } + + private ReadTheTides(final ReadTheTides card) { + super(card); + } + + @Override + public ReadTheTides copy() { + return new ReadTheTides(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CoreSet2021.java b/Mage.Sets/src/mage/sets/CoreSet2021.java index 3741a9ca34..bfc903e893 100644 --- a/Mage.Sets/src/mage/sets/CoreSet2021.java +++ b/Mage.Sets/src/mage/sets/CoreSet2021.java @@ -185,6 +185,7 @@ public final class CoreSet2021 extends ExpansionSet { cards.add(new SetCardInfo("Rain of Revelation", 61, Rarity.UNCOMMON, mage.cards.r.RainOfRevelation.class)); cards.add(new SetCardInfo("Rambunctious Mutt", 30, Rarity.COMMON, mage.cards.r.RambunctiousMutt.class)); cards.add(new SetCardInfo("Ranger's Guile", 199, Rarity.COMMON, mage.cards.r.RangersGuile.class)); + cards.add(new SetCardInfo("Read the Tides", 62, Rarity.COMMON, mage.cards.r.ReadTheTides.class)); cards.add(new SetCardInfo("Return to Nature", 200, Rarity.COMMON, mage.cards.r.ReturnToNature.class)); cards.add(new SetCardInfo("Revitalize", 31, Rarity.COMMON, mage.cards.r.Revitalize.class)); cards.add(new SetCardInfo("Rewind", 63, Rarity.UNCOMMON, mage.cards.r.Rewind.class));