From 4315772902c02d99599584e2d67a1e3aceecdfaf Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 13 Sep 2018 07:57:30 -0400 Subject: [PATCH] Implemented Conclave Guildmage --- .../src/mage/cards/c/ConclaveGuildmage.java | 62 +++++++++++++++++++ Mage.Sets/src/mage/sets/GuildsOfRavnica.java | 1 + .../game/permanent/token/ElfKnightToken.java | 35 +++++++++++ 3 files changed, 98 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/c/ConclaveGuildmage.java create mode 100644 Mage/src/main/java/mage/game/permanent/token/ElfKnightToken.java diff --git a/Mage.Sets/src/mage/cards/c/ConclaveGuildmage.java b/Mage.Sets/src/mage/cards/c/ConclaveGuildmage.java new file mode 100644 index 00000000000..67b6aab842a --- /dev/null +++ b/Mage.Sets/src/mage/cards/c/ConclaveGuildmage.java @@ -0,0 +1,62 @@ +package mage.cards.c; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.TapSourceCost; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.continuous.GainAbilityControlledEffect; +import mage.abilities.keyword.TrampleAbility; +import mage.constants.SubType; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.filter.StaticFilters; +import mage.game.permanent.token.ElfKnightToken; + +/** + * + * @author TheElk801 + */ +public final class ConclaveGuildmage extends CardImpl { + + public ConclaveGuildmage(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{G}{W}"); + + this.subtype.add(SubType.ELF); + this.subtype.add(SubType.CLERIC); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // {G}, {T}: Creatures you control gain trample until end of turn. + Ability ability = new SimpleActivatedAbility( + new GainAbilityControlledEffect( + TrampleAbility.getInstance(), + Duration.EndOfTurn, + StaticFilters.FILTER_CONTROLLED_CREATURES + ), new ManaCostsImpl("{G}") + ); + ability.addCost(new TapSourceCost()); + this.addAbility(ability); + + // {5}{W}, {T}: Create a 2/2 green and white Elf Knight creature token with vigilance. + ability = new SimpleActivatedAbility( + new CreateTokenEffect(new ElfKnightToken()), + new ManaCostsImpl("{5}{W}") + ); + ability.addCost(new TapSourceCost()); + this.addAbility(ability); + } + + public ConclaveGuildmage(final ConclaveGuildmage card) { + super(card); + } + + @Override + public ConclaveGuildmage copy() { + return new ConclaveGuildmage(this); + } +} diff --git a/Mage.Sets/src/mage/sets/GuildsOfRavnica.java b/Mage.Sets/src/mage/sets/GuildsOfRavnica.java index 0ba040aae49..aa0752a90b6 100644 --- a/Mage.Sets/src/mage/sets/GuildsOfRavnica.java +++ b/Mage.Sets/src/mage/sets/GuildsOfRavnica.java @@ -36,6 +36,7 @@ public final class GuildsOfRavnica extends ExpansionSet { cards.add(new SetCardInfo("Bounty Agent", 2, Rarity.RARE, mage.cards.b.BountyAgent.class)); cards.add(new SetCardInfo("Chemister's Insight", 32, Rarity.UNCOMMON, mage.cards.c.ChemistersInsight.class)); cards.add(new SetCardInfo("Chromatic Lantern", 233, Rarity.RARE, mage.cards.c.ChromaticLantern.class)); + cards.add(new SetCardInfo("Conclave Guildmage", 162, Rarity.UNCOMMON, mage.cards.c.ConclaveGuildmage.class)); cards.add(new SetCardInfo("Conclave Tribunal", 6, Rarity.UNCOMMON, mage.cards.c.ConclaveTribunal.class)); cards.add(new SetCardInfo("Deadly Visit", 68, Rarity.COMMON, mage.cards.d.DeadlyVisit.class)); cards.add(new SetCardInfo("Deafening Clarion", 165, Rarity.RARE, mage.cards.d.DeafeningClarion.class)); diff --git a/Mage/src/main/java/mage/game/permanent/token/ElfKnightToken.java b/Mage/src/main/java/mage/game/permanent/token/ElfKnightToken.java new file mode 100644 index 00000000000..ecb2764cdaa --- /dev/null +++ b/Mage/src/main/java/mage/game/permanent/token/ElfKnightToken.java @@ -0,0 +1,35 @@ +package mage.game.permanent.token; + +import mage.constants.CardType; +import mage.constants.SubType; +import mage.MageInt; +import mage.abilities.keyword.VigilanceAbility; + +/** + * + * @author TheElk801 + */ +public final class ElfKnightToken extends TokenImpl { + + public ElfKnightToken() { + super("Knight Ally", "2/2 green and white Elf Knight creature token with vigilance"); + this.setExpansionSetCodeForImage("GRN"); + cardType.add(CardType.CREATURE); + color.setGreen(true); + color.setWhite(true); + subtype.add(SubType.ELF); + subtype.add(SubType.KNIGHT); + power = new MageInt(2); + toughness = new MageInt(2); + this.addAbility(VigilanceAbility.getInstance()); + } + + public ElfKnightToken(final ElfKnightToken token) { + super(token); + } + + public ElfKnightToken copy() { + return new ElfKnightToken(this); + } + +}