From 9c3938157f12b882ede4659c03fc956195eb3d83 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 16 Aug 2017 07:58:36 -0400 Subject: [PATCH 1/8] Fixed Nemesis of Mortals, modified Loreseeker's Stone (bug #3823) --- .../src/mage/cards/l/LoreseekersStone.java | 11 +++-- .../src/mage/cards/n/NemesisOfMortals.java | 43 +++++++++++++++++++ 2 files changed, 50 insertions(+), 4 deletions(-) diff --git a/Mage.Sets/src/mage/cards/l/LoreseekersStone.java b/Mage.Sets/src/mage/cards/l/LoreseekersStone.java index 0beda0541e..4c8ee8daf3 100644 --- a/Mage.Sets/src/mage/cards/l/LoreseekersStone.java +++ b/Mage.Sets/src/mage/cards/l/LoreseekersStone.java @@ -33,6 +33,7 @@ import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.common.SimpleStaticAbility; import mage.abilities.costs.common.TapSourceCost; import mage.abilities.costs.mana.GenericManaCost; +import mage.abilities.effects.Effect; import mage.abilities.effects.common.DrawCardSourceControllerEffect; import mage.abilities.effects.common.cost.CostModificationEffectImpl; import mage.cards.CardImpl; @@ -53,11 +54,14 @@ import mage.util.CardUtil; public class LoreseekersStone extends CardImpl { public LoreseekersStone(UUID ownerId, CardSetInfo setInfo) { - super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{6}"); + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{6}"); // {3}, {T}: Draw three cards. This ability costs {1} more to activate for each card in your hand. Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(3), new GenericManaCost(3)); - ability.addCost(new TapSourceCost()); + ability.addCost(new TapSourceCost()); + for (Effect effect : ability.getEffects()) { + effect.setText("Draw three cards. This ability costs {1} more to activate for each card in your hand"); + } this.addAbility(ability); this.addAbility(new SimpleStaticAbility(Zone.ALL, new LoreseekersStoneCostIncreasingEffect(ability.getOriginalId()))); @@ -77,9 +81,8 @@ class LoreseekersStoneCostIncreasingEffect extends CostModificationEffectImpl { private final UUID originalId; - LoreseekersStoneCostIncreasingEffect (UUID originalId ) { + LoreseekersStoneCostIncreasingEffect(UUID originalId) { super(Duration.EndOfGame, Outcome.Benefit, CostModificationType.INCREASE_COST); - staticText = "This ability costs {1} more to activate for each card in your hand"; this.originalId = originalId; } diff --git a/Mage.Sets/src/mage/cards/n/NemesisOfMortals.java b/Mage.Sets/src/mage/cards/n/NemesisOfMortals.java index 1ef6947234..0545fa66b1 100644 --- a/Mage.Sets/src/mage/cards/n/NemesisOfMortals.java +++ b/Mage.Sets/src/mage/cards/n/NemesisOfMortals.java @@ -32,13 +32,20 @@ import mage.MageInt; import mage.abilities.Ability; import mage.abilities.common.SimpleStaticAbility; import mage.abilities.effects.Effect; +import mage.abilities.effects.common.cost.CostModificationEffectImpl; import mage.abilities.effects.common.cost.SourceCostReductionForEachCardInGraveyardEffect; import mage.abilities.keyword.MonstrosityAbility; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; +import mage.constants.CostModificationType; +import mage.constants.Duration; +import mage.constants.Outcome; import mage.constants.Zone; import mage.filter.common.FilterCreatureCard; +import mage.game.Game; +import mage.players.Player; +import mage.util.CardUtil; /** * @@ -64,6 +71,7 @@ public class NemesisOfMortals extends CardImpl { effect.setText("Monstrosity 5. This ability costs {1} less to activate for each creature card in your graveyard"); } this.addAbility(ability); + this.addAbility(new SimpleStaticAbility(Zone.ALL, new NemesisOfMortalsCostReducingEffect(ability.getOriginalId()))); } public NemesisOfMortals(final NemesisOfMortals card) { @@ -75,3 +83,38 @@ public class NemesisOfMortals extends CardImpl { return new NemesisOfMortals(this); } } + +class NemesisOfMortalsCostReducingEffect extends CostModificationEffectImpl { + + private final UUID originalId; + + NemesisOfMortalsCostReducingEffect(UUID originalId) { + super(Duration.EndOfGame, Outcome.Benefit, CostModificationType.REDUCE_COST); + this.originalId = originalId; + } + + NemesisOfMortalsCostReducingEffect(final NemesisOfMortalsCostReducingEffect effect) { + super(effect); + this.originalId = effect.originalId; + } + + @Override + public boolean apply(Game game, Ability source, Ability abilityToModify) { + Player controller = game.getPlayer(source.getControllerId()); + if (controller != null) { + CardUtil.reduceCost(abilityToModify, controller.getGraveyard().getCards(new FilterCreatureCard(), game).size()); + } + return true; + } + + @Override + public boolean applies(Ability abilityToModify, Ability source, Game game) { + return abilityToModify.getOriginalId().equals(originalId); + } + + @Override + public NemesisOfMortalsCostReducingEffect copy() { + return new NemesisOfMortalsCostReducingEffect(this); + } + +} From dd41b53859536273794e5189f06d7b01a6453816 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 16 Aug 2017 08:38:35 -0400 Subject: [PATCH 2/8] Implemented Mirror of the Forebears --- .../mage/cards/m/MirrorOfTheForebears.java | 114 ++++++++++++++++++ Mage.Sets/src/mage/sets/Commander2017.java | 2 + 2 files changed, 116 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/m/MirrorOfTheForebears.java diff --git a/Mage.Sets/src/mage/cards/m/MirrorOfTheForebears.java b/Mage.Sets/src/mage/cards/m/MirrorOfTheForebears.java new file mode 100644 index 0000000000..2481c41ee8 --- /dev/null +++ b/Mage.Sets/src/mage/cards/m/MirrorOfTheForebears.java @@ -0,0 +1,114 @@ +/* + * Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are + * permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND + * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * The views and conclusions contained in the software and documentation are those of the + * authors and should not be interpreted as representing official policies, either expressed + * or implied, of BetaSteward_at_googlemail.com. + */ +package mage.cards.m; + +import java.util.UUID; +import mage.abilities.Ability; +import mage.abilities.common.AsEntersBattlefieldAbility; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.ContinuousEffect; +import mage.abilities.effects.OneShotEffect; +import mage.abilities.effects.common.ChooseCreatureTypeEffect; +import mage.abilities.effects.common.continuous.AddCardTypeTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.Outcome; +import mage.constants.Zone; +import mage.filter.common.FilterControlledCreaturePermanent; +import mage.filter.predicate.mageobject.ChosenSubtypePredicate; +import mage.game.Game; +import mage.game.permanent.Permanent; +import mage.target.TargetPermanent; +import mage.target.targetpointer.FixedTarget; +import mage.util.functions.EmptyApplyToPermanent; + +/** + * + * @author TheElk801 + */ +public class MirrorOfTheForebears extends CardImpl { + + public MirrorOfTheForebears(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}"); + + // As Mirror of the Forebears enters the battlefield, choose a creature type. + this.addAbility(new AsEntersBattlefieldAbility(new ChooseCreatureTypeEffect(Outcome.Copy))); + + // 1: Until end of turn, Mirror of the Forebears becomes a copy of target creature you control of the chosen type, except it's an artifact in addition to its other types. + FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent(); + filter.add(new ChosenSubtypePredicate(this.getId())); + Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new MirrorOfTheForebearsCopyEffect(), new ManaCostsImpl("{1}")); + ability.addTarget(new TargetPermanent(filter)); + this.addAbility(ability); + } + + public MirrorOfTheForebears(final MirrorOfTheForebears card) { + super(card); + } + + @Override + public MirrorOfTheForebears copy() { + return new MirrorOfTheForebears(this); + } +} + +class MirrorOfTheForebearsCopyEffect extends OneShotEffect { + + public MirrorOfTheForebearsCopyEffect() { + super(Outcome.Copy); + this.staticText = "until end of turn, {this} becomes a copy of target creature you control of the chosen type, except it's an artifact in addition to its other types"; + } + + public MirrorOfTheForebearsCopyEffect(final MirrorOfTheForebearsCopyEffect effect) { + super(effect); + } + + @Override + public MirrorOfTheForebearsCopyEffect copy() { + return new MirrorOfTheForebearsCopyEffect(this); + } + + @Override + public boolean apply(Game game, Ability source) { + Permanent sourcePermanent = game.getPermanent(source.getSourceId()); + Permanent copyFromPermanent = game.getPermanent(getTargetPointer().getFirst(game, source)); + if (sourcePermanent != null && copyFromPermanent != null) { + game.copyPermanent(Duration.EndOfTurn, copyFromPermanent, sourcePermanent.getId(), source, new EmptyApplyToPermanent()); + if (!copyFromPermanent.isArtifact()) { + ContinuousEffect effect = new AddCardTypeTargetEffect(CardType.ARTIFACT, Duration.EndOfTurn); + effect.setTargetPointer(new FixedTarget(sourcePermanent, game)); + game.addEffect(effect, source); + } + return true; + } + return false; + } +} diff --git a/Mage.Sets/src/mage/sets/Commander2017.java b/Mage.Sets/src/mage/sets/Commander2017.java index c93f9ab453..c54cad8f54 100644 --- a/Mage.Sets/src/mage/sets/Commander2017.java +++ b/Mage.Sets/src/mage/sets/Commander2017.java @@ -63,6 +63,7 @@ public class Commander2017 extends ExpansionSet { cards.add(new SetCardInfo("Fractured Identity", 37, Rarity.RARE, mage.cards.f.FracturedIdentity.class)); cards.add(new SetCardInfo("Inalla, Archmage Ritualist", 38, Rarity.MYTHIC, mage.cards.i.InallaArchmageRitualist.class)); cards.add(new SetCardInfo("Kindred Dominance", 18, Rarity.RARE, mage.cards.k.KindredDominance.class)); + cards.add(new SetCardInfo("Mirror of the Forebears", 54, Rarity.UNCOMMON, mage.cards.m.MirrorOfTheForebears.class)); cards.add(new SetCardInfo("Nazahn, Revered Bladesmith", 44, Rarity.MYTHIC, mage.cards.n.NazahnReveredBladesmith.class)); cards.add(new SetCardInfo("O-Kagachi, Vengeful Kami", 45, Rarity.MYTHIC, mage.cards.o.OKagachiVengefulKami.class)); cards.add(new SetCardInfo("Patron of the Vein", 20, Rarity.RARE, mage.cards.p.PatronOfTheVein.class)); @@ -76,5 +77,6 @@ public class Commander2017 extends ExpansionSet { cards.add(new SetCardInfo("Traverse the Outlands", 34, Rarity.RARE, mage.cards.t.TraverseTheOutlands.class)); cards.add(new SetCardInfo("Wasitora, Nekoru Queen", 49, Rarity.MYTHIC, mage.cards.w.WasitoraNekoruQueen.class)); cards.add(new SetCardInfo("Kindred Dominance", 18, Rarity.RARE, mage.cards.w.WasitoraNekoruQueen.class)); + cards.add(new SetCardInfo("Mirror of the Forebears", 54, Rarity.UNCOMMON, mage.cards.m.MirrorOfTheForebears.class)); } } From c6b2ccec86438f4823757dc761dca9e2b38b3877 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 16 Aug 2017 08:44:53 -0400 Subject: [PATCH 3/8] minor change to C17 file --- Mage.Sets/src/mage/sets/Commander2017.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/Mage.Sets/src/mage/sets/Commander2017.java b/Mage.Sets/src/mage/sets/Commander2017.java index c54cad8f54..821b6fdc71 100644 --- a/Mage.Sets/src/mage/sets/Commander2017.java +++ b/Mage.Sets/src/mage/sets/Commander2017.java @@ -76,7 +76,5 @@ public class Commander2017 extends ExpansionSet { cards.add(new SetCardInfo("The Ur-Dragon", 48, Rarity.MYTHIC, mage.cards.t.TheUrDragon.class)); cards.add(new SetCardInfo("Traverse the Outlands", 34, Rarity.RARE, mage.cards.t.TraverseTheOutlands.class)); cards.add(new SetCardInfo("Wasitora, Nekoru Queen", 49, Rarity.MYTHIC, mage.cards.w.WasitoraNekoruQueen.class)); - cards.add(new SetCardInfo("Kindred Dominance", 18, Rarity.RARE, mage.cards.w.WasitoraNekoruQueen.class)); - cards.add(new SetCardInfo("Mirror of the Forebears", 54, Rarity.UNCOMMON, mage.cards.m.MirrorOfTheForebears.class)); } } From dbe8e98d8541293f90cffcecf2af1d2956cdd425 Mon Sep 17 00:00:00 2001 From: spjspj Date: Wed, 16 Aug 2017 23:08:38 +1000 Subject: [PATCH 4/8] Fix(?) for penny dreadful edh --- Mage.Server/config/config.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage.Server/config/config.xml b/Mage.Server/config/config.xml index 61efe2a6f6..877f1756e3 100644 --- a/Mage.Server/config/config.xml +++ b/Mage.Server/config/config.xml @@ -149,7 +149,7 @@ - + From 2f6c52f93a695113d3d5b9eacb660b06c9d1f1ae Mon Sep 17 00:00:00 2001 From: spjspj Date: Thu, 17 Aug 2017 00:34:17 +1000 Subject: [PATCH 5/8] Implement Fortunate Few (C17) --- Mage.Sets/src/mage/cards/f/FortunateFew.java | 128 +++++++++++++++++++ Mage.Sets/src/mage/sets/Commander2017.java | 3 +- 2 files changed, 130 insertions(+), 1 deletion(-) create mode 100644 Mage.Sets/src/mage/cards/f/FortunateFew.java diff --git a/Mage.Sets/src/mage/cards/f/FortunateFew.java b/Mage.Sets/src/mage/cards/f/FortunateFew.java new file mode 100644 index 0000000000..771feb7298 --- /dev/null +++ b/Mage.Sets/src/mage/cards/f/FortunateFew.java @@ -0,0 +1,128 @@ +/* + * Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are + * permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND + * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * The views and conclusions contained in the software and documentation are those of the + * authors and should not be interpreted as representing official policies, either expressed + * or implied, of BetaSteward_at_googlemail.com. + */ +package mage.cards.f; + +import java.util.HashMap; +import java.util.Map; +import java.util.UUID; +import mage.abilities.Ability; +import mage.abilities.effects.OneShotEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Outcome; +import mage.filter.common.FilterNonlandPermanent; +import mage.filter.predicate.Predicates; +import mage.filter.predicate.permanent.ControllerIdPredicate; +import mage.filter.predicate.permanent.PermanentIdPredicate; +import mage.game.Game; +import mage.game.permanent.Permanent; +import mage.players.Player; +import mage.target.Target; +import mage.target.common.TargetNonlandPermanent; + +/** + * + * @author spjspj + */ +public class FortunateFew extends CardImpl { + + public FortunateFew(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{W}{W}"); + + // Choose a nonland permanent you don't control, then each other player chooses a nonland permanent he or she doesn't control that hasn't been chosen this way. Destroy all other nonland permanents. + this.getSpellAbility().addEffect(new FortunateFewEffect()); + } + + public FortunateFew(final FortunateFew card) { + super(card); + } + + @Override + public FortunateFew copy() { + return new FortunateFew(this); + } +} + +class FortunateFewEffect extends OneShotEffect { + + public FortunateFewEffect() { + super(Outcome.DestroyPermanent); + staticText = "Choose a nonland permanent you don't control, then each other player chooses a nonland permanent he or she doesn't control that hasn't been chosen this way. Destroy all other nonland permanents"; + } + + public FortunateFewEffect(FortunateFewEffect effect) { + super(effect); + } + + @Override + public boolean apply(Game game, Ability source) { + Player controller = game.getPlayer(source.getControllerId()); + if (controller != null) { + Map chosenCards = new HashMap<>(2); + int maxCount = 0; + + // Players each choose a legal permanent + for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) { + Player player = game.getPlayer(playerId); + if (player != null) { + + FilterNonlandPermanent filter = new FilterNonlandPermanent("a nonland permanent you don't control"); + filter.add(Predicates.not(new ControllerIdPredicate(player.getId()))); + + for (Permanent chosenPerm : chosenCards.keySet()) { + filter.add(Predicates.not(new PermanentIdPredicate(chosenPerm.getId()))); + } + + Target target = new TargetNonlandPermanent(filter); + target.setNotTarget(true); + if (player.choose(Outcome.Exile, target, source.getSourceId(), game)) { + Permanent permanent = game.getPermanent(target.getFirstTarget()); + if (permanent != null) { + chosenCards.put(permanent, 1); + game.informPlayers(player.getLogName() + " has chosen: " + permanent.getName()); + } + } + } + } + + for (Permanent permanent : game.getBattlefield().getActivePermanents(new FilterNonlandPermanent(), source.getControllerId(), source.getSourceId(), game)) { + if (!chosenCards.containsKey(permanent)) { + permanent.destroy(source.getSourceId(), game, false); + } + } + return true; + } + return false; + } + + @Override + public FortunateFewEffect copy() { + return new FortunateFewEffect(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Commander2017.java b/Mage.Sets/src/mage/sets/Commander2017.java index 821b6fdc71..1a8c243668 100644 --- a/Mage.Sets/src/mage/sets/Commander2017.java +++ b/Mage.Sets/src/mage/sets/Commander2017.java @@ -58,9 +58,10 @@ public class Commander2017 extends ExpansionSet { cards.add(new SetCardInfo("Curse of Verbosity", 9, Rarity.UNCOMMON, mage.cards.c.CurseOfVerbosity.class)); cards.add(new SetCardInfo("Curse of Vitality", 3, Rarity.UNCOMMON, mage.cards.c.CurseOfVitality.class)); cards.add(new SetCardInfo("Edgar Markov", 36, Rarity.MYTHIC, mage.cards.e.EdgarMarkov.class)); + cards.add(new SetCardInfo("Fortunate Few", 4, Rarity.RARE, mage.cards.f.FortunateFew.class)); + cards.add(new SetCardInfo("Fractured Identity", 37, Rarity.RARE, mage.cards.f.FracturedIdentity.class)); cards.add(new SetCardInfo("Herald's Horn", 53, Rarity.UNCOMMON, mage.cards.h.HeraldsHorn.class)); cards.add(new SetCardInfo("Hungry Lynx", 31, Rarity.RARE, mage.cards.h.HungryLynx.class)); - cards.add(new SetCardInfo("Fractured Identity", 37, Rarity.RARE, mage.cards.f.FracturedIdentity.class)); cards.add(new SetCardInfo("Inalla, Archmage Ritualist", 38, Rarity.MYTHIC, mage.cards.i.InallaArchmageRitualist.class)); cards.add(new SetCardInfo("Kindred Dominance", 18, Rarity.RARE, mage.cards.k.KindredDominance.class)); cards.add(new SetCardInfo("Mirror of the Forebears", 54, Rarity.UNCOMMON, mage.cards.m.MirrorOfTheForebears.class)); From ffc5c1c89470e8071c31ad59983d07227c49bc11 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 16 Aug 2017 12:57:48 -0400 Subject: [PATCH 6/8] Implemented Territorial Hellkite --- .../src/mage/cards/t/TerritorialHellkite.java | 186 ++++++++++++++++++ Mage.Sets/src/mage/sets/Commander2017.java | 1 + 2 files changed, 187 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/t/TerritorialHellkite.java diff --git a/Mage.Sets/src/mage/cards/t/TerritorialHellkite.java b/Mage.Sets/src/mage/cards/t/TerritorialHellkite.java new file mode 100644 index 0000000000..250c0d6d4c --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/TerritorialHellkite.java @@ -0,0 +1,186 @@ +/* + * Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are + * permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND + * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * The views and conclusions contained in the software and documentation are those of the + * authors and should not be interpreted as representing official policies, either expressed + * or implied, of BetaSteward_at_googlemail.com. + */ +package mage.cards.t; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.UUID; +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.BeginningOfCombatTriggeredAbility; +import mage.abilities.effects.ContinuousEffect; +import mage.abilities.effects.OneShotEffect; +import mage.abilities.effects.common.AttacksIfAbleTargetPlayerSourceEffect; +import mage.abilities.keyword.FlyingAbility; +import mage.abilities.keyword.HasteAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Outcome; +import mage.constants.TargetController; +import mage.constants.WatcherScope; +import mage.game.Game; +import mage.game.events.GameEvent; +import mage.players.Player; +import mage.target.targetpointer.FixedTarget; +import mage.util.RandomUtil; +import mage.watchers.Watcher; + +/** + * + * @author TheElk801 + */ +public class TerritorialHellkite extends CardImpl { + + public TerritorialHellkite(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{R}{R}"); + + this.subtype.add("Dragon"); + this.power = new MageInt(6); + this.toughness = new MageInt(5); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // Haste + this.addAbility(HasteAbility.getInstance()); + + // At the beginning of combat on your turn, choose an opponent at random that Territorial Hellkite didn't attack during your last combat. Territorial Hellkite attacks that player this combat if able. If you can't choose an opponent this way, tap Territorial Hellkite. + this.addAbility(new BeginningOfCombatTriggeredAbility(new AttackIfAbleTargetRandoOpponentSourceEffect(), TargetController.YOU, false), new AttackedLastCombatWatcher()); + } + + public TerritorialHellkite(final TerritorialHellkite card) { + super(card); + } + + @Override + public TerritorialHellkite copy() { + return new TerritorialHellkite(this); + } +} + +class AttackedLastCombatWatcher extends Watcher { + + public final Map attackedLastCombatPlayers = new HashMap<>(); + + public AttackedLastCombatWatcher() { + super(AttackedLastCombatWatcher.class.getSimpleName(), WatcherScope.GAME); + } + + public AttackedLastCombatWatcher(final AttackedLastCombatWatcher watcher) { + super(watcher); + for (Entry entry : watcher.attackedLastCombatPlayers.entrySet()) { + attackedLastCombatPlayers.put(entry.getKey(), entry.getValue()); + } + } + + @Override + public void watch(GameEvent event, Game game) { + //TODO: this will have problems if the creature is stolen and then given back before the original controller's next combat + if (event.getType() == GameEvent.EventType.DECLARE_ATTACKERS_STEP_PRE) { + if (!attackedLastCombatPlayers.keySet().isEmpty()) { + Iterator> attackers = attackedLastCombatPlayers.entrySet().iterator(); + while (attackers.hasNext()) { + Map.Entry attacker = attackers.next(); + if (game.getPermanent(attacker.getKey()).getControllerId().equals(game.getActivePlayerId())) { + attackers.remove(); + } + } + } + } + if (event.getType() == GameEvent.EventType.ATTACKER_DECLARED) { + attackedLastCombatPlayers.put(event.getSourceId(), game.getCombat().getDefenderId(event.getSourceId())); + } + } + + public Map getAttackedLastCombatPlayers() { + return this.attackedLastCombatPlayers; + } + + @Override + public AttackedLastCombatWatcher copy() { + return new AttackedLastCombatWatcher(this); + } + +} + +class AttackIfAbleTargetRandoOpponentSourceEffect extends OneShotEffect { + + public AttackIfAbleTargetRandoOpponentSourceEffect() { + super(Outcome.Benefit); + this.staticText = "choose an opponent at random that {this} didn't attack during your last combat. {this} attacks that player this combat if able. If you can't choose an opponent this way, tap {this}"; + } + + public AttackIfAbleTargetRandoOpponentSourceEffect(final AttackIfAbleTargetRandoOpponentSourceEffect effect) { + super(effect); + } + + @Override + public AttackIfAbleTargetRandoOpponentSourceEffect copy() { + return new AttackIfAbleTargetRandoOpponentSourceEffect(this); + } + + @Override + public boolean apply(Game game, Ability source) { + Player controller = game.getPlayer(source.getControllerId()); + if (controller != null) { + List opponents = new ArrayList<>(); + AttackedLastCombatWatcher watcher = (AttackedLastCombatWatcher) game.getState().getWatchers().get(AttackedLastCombatWatcher.class.getSimpleName()); + if (watcher != null) { + boolean ignoreMe; + for (UUID opp : game.getOpponents(controller.getId())) { + ignoreMe = false; + if (watcher.getAttackedLastCombatPlayers().getOrDefault(source.getSourceId(), source.getControllerId()).equals(opp)) { + ignoreMe = true; + } + if (!ignoreMe) { + opponents.add(opp); + } + } + } else { + opponents.addAll(game.getOpponents(controller.getId())); + } + if (!opponents.isEmpty()) { + Player opponent = game.getPlayer(opponents.get(RandomUtil.nextInt(opponents.size()))); + if (opponent != null) { + ContinuousEffect effect = new AttacksIfAbleTargetPlayerSourceEffect(); + effect.setTargetPointer(new FixedTarget(opponent.getId())); + game.addEffect(effect, source); + return true; + } + } else { + game.getPermanent(source.getSourceId()).tap(game); + } + } + return false; + } +} diff --git a/Mage.Sets/src/mage/sets/Commander2017.java b/Mage.Sets/src/mage/sets/Commander2017.java index 821b6fdc71..427275d115 100644 --- a/Mage.Sets/src/mage/sets/Commander2017.java +++ b/Mage.Sets/src/mage/sets/Commander2017.java @@ -73,6 +73,7 @@ public class Commander2017 extends ExpansionSet { cards.add(new SetCardInfo("Taigam, Ojutai Master", 46, Rarity.MYTHIC, mage.cards.t.TaigamOjutaiMaster.class)); cards.add(new SetCardInfo("Taigam, Sidisi's Hand", 47, Rarity.RARE, mage.cards.t.TaigamSidisisHand.class)); cards.add(new SetCardInfo("Teferi's Protection", 8, Rarity.RARE, mage.cards.t.TeferisProtection.class)); + cards.add(new SetCardInfo("Territorial Hellkite", 29, Rarity.RARE, mage.cards.t.TerritorialHellkite.class)); cards.add(new SetCardInfo("The Ur-Dragon", 48, Rarity.MYTHIC, mage.cards.t.TheUrDragon.class)); cards.add(new SetCardInfo("Traverse the Outlands", 34, Rarity.RARE, mage.cards.t.TraverseTheOutlands.class)); cards.add(new SetCardInfo("Wasitora, Nekoru Queen", 49, Rarity.MYTHIC, mage.cards.w.WasitoraNekoruQueen.class)); From 76bac135dce01e679a699ae300f4d4d1e6ad5e65 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 16 Aug 2017 13:58:35 -0400 Subject: [PATCH 7/8] Implemented Bloodline Necromancer --- .../mage/cards/b/BloodlineNecromancer.java | 84 +++++++++++++++++++ Mage.Sets/src/mage/sets/Commander2017.java | 1 + 2 files changed, 85 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/b/BloodlineNecromancer.java diff --git a/Mage.Sets/src/mage/cards/b/BloodlineNecromancer.java b/Mage.Sets/src/mage/cards/b/BloodlineNecromancer.java new file mode 100644 index 0000000000..a09ecbe711 --- /dev/null +++ b/Mage.Sets/src/mage/cards/b/BloodlineNecromancer.java @@ -0,0 +1,84 @@ +/* + * Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are + * permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND + * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * The views and conclusions contained in the software and documentation are those of the + * authors and should not be interpreted as representing official policies, either expressed + * or implied, of BetaSteward_at_googlemail.com. + */ +package mage.cards.b; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.effects.common.ReturnFromGraveyardToBattlefieldTargetEffect; +import mage.abilities.keyword.LifelinkAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.common.FilterCreatureCard; +import mage.filter.predicate.Predicates; +import mage.filter.predicate.mageobject.SubtypePredicate; +import mage.target.Target; +import mage.target.common.TargetCardInYourGraveyard; + +/** + * + * @author TheElk801 + */ +public class BloodlineNecromancer extends CardImpl { + + private static final FilterCreatureCard filter = new FilterCreatureCard("Vampire or Wizard creature card from your graveyard"); + + static { + filter.add(Predicates.or(new SubtypePredicate(SubType.VAMPIRE), new SubtypePredicate(SubType.WIZARD))); + } + + public BloodlineNecromancer(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{B}"); + + this.subtype.add("Vampire"); + this.subtype.add("Wizard"); + this.power = new MageInt(3); + this.toughness = new MageInt(2); + + // Lifelink + this.addAbility(LifelinkAbility.getInstance()); + + // When Bloodline Necromancer enters the battlefield, you may return target Vampire or Wizard creature card from your graveyard to the battlefield. + Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnFromGraveyardToBattlefieldTargetEffect(), true); + Target target = new TargetCardInYourGraveyard(filter); + ability.addTarget(target); + this.addAbility(ability); + } + + public BloodlineNecromancer(final BloodlineNecromancer card) { + super(card); + } + + @Override + public BloodlineNecromancer copy() { + return new BloodlineNecromancer(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Commander2017.java b/Mage.Sets/src/mage/sets/Commander2017.java index b6522d2418..f71af32ff0 100644 --- a/Mage.Sets/src/mage/sets/Commander2017.java +++ b/Mage.Sets/src/mage/sets/Commander2017.java @@ -50,6 +50,7 @@ public class Commander2017 extends ExpansionSet { cards.add(new SetCardInfo("Arahbo, Roar of the World", 35, Rarity.MYTHIC, mage.cards.a.ArahboRoarOfTheWorld.class)); cards.add(new SetCardInfo("Balan, Wandering Knight", 2, Rarity.RARE, mage.cards.b.BalanWanderingKnight.class)); cards.add(new SetCardInfo("Bloodforged War Axe", 50, Rarity.RARE, mage.cards.b.BloodforgedWarAxe.class)); + cards.add(new SetCardInfo("Bloodline Necromancer", 14, Rarity.UNCOMMON, mage.cards.b.BloodlineNecromancer.class)); cards.add(new SetCardInfo("Bloodsworn Steward", 22, Rarity.RARE, mage.cards.b.BloodswornSteward.class)); cards.add(new SetCardInfo("Crimson Honor Guard", 23, Rarity.RARE, mage.cards.c.CrimsonHonorGuard.class)); cards.add(new SetCardInfo("Curse of Bounty", 30, Rarity.UNCOMMON, mage.cards.c.CurseOfBounty.class)); From c776e0a0e15a8f09e510ae963adf6994ea2d1f1e Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 16 Aug 2017 22:05:38 -0400 Subject: [PATCH 8/8] Implemented Mirri, Weatherlight Duelist --- .../cards/m/MirriWeatherlightDuelist.java | 201 ++++++++++++++++++ Mage.Sets/src/mage/sets/Commander2017.java | 1 + 2 files changed, 202 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/m/MirriWeatherlightDuelist.java diff --git a/Mage.Sets/src/mage/cards/m/MirriWeatherlightDuelist.java b/Mage.Sets/src/mage/cards/m/MirriWeatherlightDuelist.java new file mode 100644 index 0000000000..90d94d622d --- /dev/null +++ b/Mage.Sets/src/mage/cards/m/MirriWeatherlightDuelist.java @@ -0,0 +1,201 @@ +/* + * Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are + * permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND + * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * The views and conclusions contained in the software and documentation are those of the + * authors and should not be interpreted as representing official policies, either expressed + * or implied, of BetaSteward_at_googlemail.com. + */ +package mage.cards.m; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.AttacksTriggeredAbility; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.condition.common.SourceTappedCondition; +import mage.abilities.decorator.ConditionalContinuousEffect; +import mage.abilities.effects.ContinuousEffectImpl; +import mage.abilities.effects.RestrictionEffect; +import mage.abilities.effects.common.AddContinuousEffectToGame; +import mage.abilities.keyword.FirstStrikeAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.Layer; +import mage.constants.Outcome; +import mage.constants.SubLayer; +import mage.constants.SuperType; +import mage.constants.Zone; +import mage.game.Game; +import mage.game.permanent.Permanent; +import mage.players.Player; + +/** + * + * @author TheElk801 + */ +public class MirriWeatherlightDuelist extends CardImpl { + + public MirriWeatherlightDuelist(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}{W}"); + + addSuperType(SuperType.LEGENDARY); + this.subtype.add("Cat"); + this.subtype.add("Warrior"); + this.power = new MageInt(3); + this.toughness = new MageInt(2); + + // First Strike + this.addAbility(FirstStrikeAbility.getInstance()); + + // Whenever Mirri, Weatherlight Duelist attacks, each opponent can't block with more than one creature this combat. + this.addAbility(new AttacksTriggeredAbility(new AddContinuousEffectToGame(new MirriWeatherlightDuelistBlockRestrictionEffect()), false)); + + // As long as Mirri, Weatherlight Duelist is tapped, no more than one creature can attack you each combat. + Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new ConditionalContinuousEffect( + new MirriWeatherlightDuelistAttackRestrictionEffect(1), SourceTappedCondition.instance, + "As long as {this} is tapped, no more than one creature can attack you each combat.")); + this.addAbility(ability); + } + + public MirriWeatherlightDuelist(final MirriWeatherlightDuelist card) { + super(card); + } + + @Override + public MirriWeatherlightDuelist copy() { + return new MirriWeatherlightDuelist(this); + } +} + +class MirriWeatherlightDuelistBlockRestrictionEffect extends RestrictionEffect { + + MirriWeatherlightDuelistBlockRestrictionEffect() { + super(Duration.EndOfCombat); + staticText = "each opponent can't block with more than one creature this combat"; + } + + MirriWeatherlightDuelistBlockRestrictionEffect(final MirriWeatherlightDuelistBlockRestrictionEffect effect) { + super(effect); + } + + @Override + public MirriWeatherlightDuelistBlockRestrictionEffect copy() { + return new MirriWeatherlightDuelistBlockRestrictionEffect(this); + } + + @Override + public boolean applies(Permanent permanent, Ability source, Game game) { + return true; + } + + @Override + public boolean canBlock(Permanent attacker, Permanent blocker, Ability source, Game game) { + for (UUID creature : game.getCombat().getBlockers()) { + if (game.getPlayer(game.getPermanent(creature).getOwnerId()).hasOpponent(attacker.getControllerId(), game)) { + return false; + } + } + return true; + } +} + +/*class MirriWeatherlightDuelistAttackRestrictionEffect extends RestrictionEffect { + + MirriWeatherlightDuelistAttackRestrictionEffect() { + super(Duration.WhileOnBattlefield); + staticText = "no more than one creature can attack you each combat"; + } + + MirriWeatherlightDuelistAttackRestrictionEffect(final MirriWeatherlightDuelistAttackRestrictionEffect effect) { + super(effect); + } + + @Override + public MirriWeatherlightDuelistAttackRestrictionEffect copy() { + return new MirriWeatherlightDuelistAttackRestrictionEffect(this); + } + + @Override + public boolean applies(Permanent permanent, Ability source, Game game) { + return true; + } + + @Override + public boolean canAttack(Permanent attacker, UUID defenderId, Ability source, Game game) { + for (UUID creature : game.getCombat().getAttackers()) { + if (game.getPermanent(creature).getControllerId().equals(attacker.getControllerId()) + && game.getCombat().getDefendingPlayerId(creature, game).equals(source.getControllerId())) { + return false; + } + } + return true; + } +}*/ +class MirriWeatherlightDuelistAttackRestrictionEffect extends ContinuousEffectImpl { + + private final int maxAttackedBy; + + public MirriWeatherlightDuelistAttackRestrictionEffect(int maxAttackedBy) { + super(Duration.WhileOnBattlefield, Outcome.Benefit); + this.maxAttackedBy = maxAttackedBy; + staticText = "No more than one creature can attack you each combat"; + } + + public MirriWeatherlightDuelistAttackRestrictionEffect(final MirriWeatherlightDuelistAttackRestrictionEffect effect) { + super(effect); + this.maxAttackedBy = effect.maxAttackedBy; + } + + @Override + public MirriWeatherlightDuelistAttackRestrictionEffect copy() { + return new MirriWeatherlightDuelistAttackRestrictionEffect(this); + } + + @Override + public boolean apply(Layer layer, SubLayer sublayer, Ability source, Game game) { + switch (layer) { + case RulesEffects: + Player controller = game.getPlayer(source.getControllerId()); + if (controller != null) { + // Change the rule + if (controller.getMaxAttackedBy() > maxAttackedBy) { + controller.setMaxAttackedBy(maxAttackedBy); + } + } + break; + } + return false; + } + + @Override + public boolean apply(Game game, Ability source) { + return false; + } + + @Override + public boolean hasLayer(Layer layer) { + return layer == Layer.RulesEffects; + } +} diff --git a/Mage.Sets/src/mage/sets/Commander2017.java b/Mage.Sets/src/mage/sets/Commander2017.java index f71af32ff0..47663bbc7a 100644 --- a/Mage.Sets/src/mage/sets/Commander2017.java +++ b/Mage.Sets/src/mage/sets/Commander2017.java @@ -65,6 +65,7 @@ public class Commander2017 extends ExpansionSet { cards.add(new SetCardInfo("Hungry Lynx", 31, Rarity.RARE, mage.cards.h.HungryLynx.class)); cards.add(new SetCardInfo("Inalla, Archmage Ritualist", 38, Rarity.MYTHIC, mage.cards.i.InallaArchmageRitualist.class)); cards.add(new SetCardInfo("Kindred Dominance", 18, Rarity.RARE, mage.cards.k.KindredDominance.class)); + cards.add(new SetCardInfo("Mirri, Weatherlight Duelist", 43, Rarity.MYTHIC, mage.cards.m.MirriWeatherlightDuelist.class)); cards.add(new SetCardInfo("Mirror of the Forebears", 54, Rarity.UNCOMMON, mage.cards.m.MirrorOfTheForebears.class)); cards.add(new SetCardInfo("Nazahn, Revered Bladesmith", 44, Rarity.MYTHIC, mage.cards.n.NazahnReveredBladesmith.class)); cards.add(new SetCardInfo("O-Kagachi, Vengeful Kami", 45, Rarity.MYTHIC, mage.cards.o.OKagachiVengefulKami.class));