diff --git a/Mage.Sets/src/mage/cards/r/RestlessPrairie.java b/Mage.Sets/src/mage/cards/r/RestlessPrairie.java new file mode 100644 index 00000000000..322981afda6 --- /dev/null +++ b/Mage.Sets/src/mage/cards/r/RestlessPrairie.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.continuous.BecomesCreatureSourceEffect; +import mage.abilities.effects.common.continuous.BoostControlledEffect; +import mage.abilities.mana.GreenManaAbility; +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.filter.StaticFilters; +import mage.game.permanent.token.custom.CreatureToken; + +import java.util.UUID; + +/** + * @author Susucr + */ +public final class RestlessPrairie extends CardImpl { + + public RestlessPrairie(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.LAND}, ""); + + // Restless Prairie enters the battlefield tapped. + this.addAbility(new EntersBattlefieldTappedAbility()); + + // {T}: Add {G} or {W}. + this.addAbility(new GreenManaAbility()); + this.addAbility(new WhiteManaAbility()); + + // {2}{G}{W}: Restless Prairie becomes a 3/3 green and white Llama creature until end of turn. It's still a land. + this.addAbility(new SimpleActivatedAbility(new BecomesCreatureSourceEffect( + new CreatureToken(3, 3, "3/3 green and white Llama creature") + .withColor("GW").withSubType(SubType.LLAMA), + CardType.LAND, Duration.EndOfTurn + ), new ManaCostsImpl<>("{2}{G}{W}"))); + + // Whenever Restless Prairie attacks, other creatures you control get +1/+1 until end of turn. + this.addAbility(new AttacksTriggeredAbility( + new BoostControlledEffect( + 1, 1, Duration.EndOfTurn, + StaticFilters.FILTER_PERMANENT_CREATURES, true + ), false + )); + } + + private RestlessPrairie(final RestlessPrairie card) { + super(card); + } + + @Override + public RestlessPrairie copy() { + return new RestlessPrairie(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java b/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java index 7d2e2fd9edf..db0f6ee7f08 100644 --- a/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java +++ b/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java @@ -51,6 +51,7 @@ public final class TheLostCavernsOfIxalan extends ExpansionSet { cards.add(new SetCardInfo("Plains", 393, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Poison Dart Frog", 207, Rarity.COMMON, mage.cards.p.PoisonDartFrog.class)); cards.add(new SetCardInfo("Rampaging Spiketail", 116, Rarity.COMMON, mage.cards.r.RampagingSpiketail.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)); cards.add(new SetCardInfo("Sanguine Evangelist", 34, Rarity.RARE, mage.cards.s.SanguineEvangelist.class)); diff --git a/Mage/src/main/java/mage/constants/SubType.java b/Mage/src/main/java/mage/constants/SubType.java index 131cbcea9ec..ea67a5520cf 100644 --- a/Mage/src/main/java/mage/constants/SubType.java +++ b/Mage/src/main/java/mage/constants/SubType.java @@ -142,7 +142,7 @@ public enum SubType { DESERTER("Deserter", SubTypeSet.CreatureType), DETECTIVE("Detective", SubTypeSet.CreatureType), DEVIL("Devil", SubTypeSet.CreatureType), - DINOSAUR("Dinosaur", SubTypeSet.CreatureType), // With Ixalan now being spoiled, need this to be selectable + DINOSAUR("Dinosaur", SubTypeSet.CreatureType), DJINN("Djinn", SubTypeSet.CreatureType), DOCTOR("Doctor", SubTypeSet.CreatureType), DOG("Dog", SubTypeSet.CreatureType), @@ -249,6 +249,7 @@ public enum SubType { LHURGOYF("Lhurgoyf", SubTypeSet.CreatureType), LICID("Licid", SubTypeSet.CreatureType), LIZARD("Lizard", SubTypeSet.CreatureType), + LLAMA("Llama", SubTypeSet.CreatureType), LOBSTER("Lobster", SubTypeSet.CreatureType, true), // Unglued LUKE("Luke", SubTypeSet.PlaneswalkerType, true), // Star Wars // M