From 486f457ed64f96bd728ddd6fcf0759b0b2778a30 Mon Sep 17 00:00:00 2001 From: Susucre <34709007+Susucre@users.noreply.github.com> Date: Sat, 28 Oct 2023 15:05:38 +0200 Subject: [PATCH] [LCI] Implement Restless Anchorage --- .../src/mage/cards/r/RestlessAnchorage.java | 60 +++++++++++++++++++ .../src/mage/sets/TheLostCavernsOfIxalan.java | 1 + 2 files changed, 61 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/r/RestlessAnchorage.java diff --git a/Mage.Sets/src/mage/cards/r/RestlessAnchorage.java b/Mage.Sets/src/mage/cards/r/RestlessAnchorage.java new file mode 100644 index 00000000000..4fd5afb4672 --- /dev/null +++ b/Mage.Sets/src/mage/cards/r/RestlessAnchorage.java @@ -0,0 +1,60 @@ +package mage.cards.r; + +import mage.abilities.common.AttacksTriggeredAbility; +import mage.abilities.common.EntersBattlefieldTappedAbility; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.continuous.BecomesCreatureSourceEffect; +import mage.abilities.keyword.FlyingAbility; +import mage.abilities.mana.BlueManaAbility; +import mage.abilities.mana.WhiteManaAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.game.permanent.token.MapToken; +import mage.game.permanent.token.custom.CreatureToken; + +import java.util.UUID; + +/** + * @author Susucr + */ +public final class RestlessAnchorage extends CardImpl { + + public RestlessAnchorage(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.LAND}, ""); + + // Restless Anchorage enters the battlefield tapped. + this.addAbility(new EntersBattlefieldTappedAbility()); + + // {T}: Add {W} or {U} + this.addAbility(new WhiteManaAbility()); + this.addAbility(new BlueManaAbility()); + + // {1}{W}{U}: Until end of turn, Restless Anchorage becomes a 2/3 white and blue Bird creature with flying. It's still a land. + this.addAbility(new SimpleActivatedAbility(new BecomesCreatureSourceEffect( + new CreatureToken(2, 3, "2/3 white and blue Bird creature with flying") + .withColor("WU") + .withSubType(SubType.BIRD) + .withAbility(FlyingAbility.getInstance()), + CardType.LAND, Duration.EndOfTurn + ), new ManaCostsImpl<>("{1}{W}{U}"))); + + // Whenever Restless Anchorage attacks, create a Map token. + this.addAbility(new AttacksTriggeredAbility( + new CreateTokenEffect(new MapToken()) + )); + } + + private RestlessAnchorage(final RestlessAnchorage card) { + super(card); + } + + @Override + public RestlessAnchorage copy() { + return new RestlessAnchorage(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java b/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java index 893adf994f1..5bd40bbffe5 100644 --- a/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java +++ b/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java @@ -79,6 +79,7 @@ public final class TheLostCavernsOfIxalan extends ExpansionSet { cards.add(new SetCardInfo("Quintorius Kand", 238, Rarity.MYTHIC, mage.cards.q.QuintoriusKand.class)); cards.add(new SetCardInfo("Rampaging Spiketail", 116, Rarity.COMMON, mage.cards.r.RampagingSpiketail.class)); cards.add(new SetCardInfo("Resplendent Angel", 32, Rarity.MYTHIC, mage.cards.r.ResplendentAngel.class)); + cards.add(new SetCardInfo("Restless Anchorage", 280, Rarity.RARE, mage.cards.r.RestlessAnchorage.class)); cards.add(new SetCardInfo("Restless Prairie", 281, Rarity.RARE, mage.cards.r.RestlessPrairie.class)); cards.add(new SetCardInfo("Roar of the Fifth People", 189, Rarity.MYTHIC, mage.cards.r.RoarOfTheFifthPeople.class)); cards.add(new SetCardInfo("Saheeli, the Sun's Brilliance", 239, Rarity.MYTHIC, mage.cards.s.SaheeliTheSunsBrilliance.class));