From d55b69401d00ae9d7c020aaa23d4e5374532be55 Mon Sep 17 00:00:00 2001 From: Quercitron Date: Fri, 16 May 2014 02:16:28 +0400 Subject: [PATCH] [6ED] Add 8 cards --- .../src/mage/sets/alliances/SoldeviSage.java | 130 ++++++++++++ .../src/mage/sets/fifthedition/Forget.java | 52 +++++ .../mage/sets/fifthedition/GaseousForm.java | 52 +++++ .../sets/fifthedition/PhantasmalTerrain.java | 52 +++++ .../src/mage/sets/fifthedition/PowerSink.java | 54 +++++ .../src/mage/sets/fifthedition/Recall.java | 113 ++++++++++ .../mage/sets/fourthedition/GaseousForm.java | 52 +++++ .../mage/sets/fourthedition/ManaShort.java | 52 +++++ .../sets/fourthedition/PhantasmalTerrain.java | 52 +++++ .../mage/sets/fourthedition/PowerSink.java | 52 +++++ Mage.Sets/src/mage/sets/homelands/Forget.java | 96 +++++++++ Mage.Sets/src/mage/sets/iceage/PowerSink.java | 52 +++++ .../mage/sets/invasion/PhantasmalTerrain.java | 52 +++++ .../src/mage/sets/legends/GaseousForm.java | 52 +++++ Mage.Sets/src/mage/sets/legends/Recall.java | 52 +++++ .../src/mage/sets/limitedalpha/ManaShort.java | 105 +++++++++ .../sets/limitedalpha/PhantasmalTerrain.java | 200 ++++++++++++++++++ .../src/mage/sets/limitedalpha/PowerSink.java | 136 ++++++++++++ .../src/mage/sets/limitedbeta/ManaShort.java | 52 +++++ .../sets/limitedbeta/PhantasmalTerrain.java | 52 +++++ .../src/mage/sets/limitedbeta/PowerSink.java | 52 +++++ Mage.Sets/src/mage/sets/mirage/PowerSink.java | 52 +++++ .../mage/sets/revisededition/ManaShort.java | 52 +++++ .../revisededition/PhantasmalTerrain.java | 52 +++++ .../mage/sets/revisededition/PowerSink.java | 52 +++++ .../mage/sets/seventhedition/ManaShort.java | 52 +++++ .../src/mage/sets/sixthedition/Forget.java | 52 +++++ .../mage/sets/sixthedition/GaseousForm.java | 52 +++++ .../src/mage/sets/sixthedition/ManaShort.java | 52 +++++ .../sets/sixthedition/PhantasmalTerrain.java | 52 +++++ .../src/mage/sets/sixthedition/PowerSink.java | 54 +++++ .../src/mage/sets/sixthedition/Recall.java | 52 +++++ .../src/mage/sets/sixthedition/Relearn.java | 52 +++++ .../mage/sets/sixthedition/SoldeviSage.java | 54 +++++ .../src/mage/sets/tempest/GaseousForm.java | 76 +++++++ .../src/mage/sets/tempest/PowerSink.java | 52 +++++ .../mage/sets/unlimitededition/ManaShort.java | 52 +++++ .../unlimitededition/PhantasmalTerrain.java | 52 +++++ .../mage/sets/unlimitededition/PowerSink.java | 52 +++++ .../src/mage/sets/urzassaga/PowerSink.java | 52 +++++ .../src/mage/sets/weatherlight/Relearn.java | 73 +++++++ 41 files changed, 2651 insertions(+) create mode 100644 Mage.Sets/src/mage/sets/alliances/SoldeviSage.java create mode 100644 Mage.Sets/src/mage/sets/fifthedition/Forget.java create mode 100644 Mage.Sets/src/mage/sets/fifthedition/GaseousForm.java create mode 100644 Mage.Sets/src/mage/sets/fifthedition/PhantasmalTerrain.java create mode 100644 Mage.Sets/src/mage/sets/fifthedition/PowerSink.java create mode 100644 Mage.Sets/src/mage/sets/fifthedition/Recall.java create mode 100644 Mage.Sets/src/mage/sets/fourthedition/GaseousForm.java create mode 100644 Mage.Sets/src/mage/sets/fourthedition/ManaShort.java create mode 100644 Mage.Sets/src/mage/sets/fourthedition/PhantasmalTerrain.java create mode 100644 Mage.Sets/src/mage/sets/fourthedition/PowerSink.java create mode 100644 Mage.Sets/src/mage/sets/homelands/Forget.java create mode 100644 Mage.Sets/src/mage/sets/iceage/PowerSink.java create mode 100644 Mage.Sets/src/mage/sets/invasion/PhantasmalTerrain.java create mode 100644 Mage.Sets/src/mage/sets/legends/GaseousForm.java create mode 100644 Mage.Sets/src/mage/sets/legends/Recall.java create mode 100644 Mage.Sets/src/mage/sets/limitedalpha/ManaShort.java create mode 100644 Mage.Sets/src/mage/sets/limitedalpha/PhantasmalTerrain.java create mode 100644 Mage.Sets/src/mage/sets/limitedalpha/PowerSink.java create mode 100644 Mage.Sets/src/mage/sets/limitedbeta/ManaShort.java create mode 100644 Mage.Sets/src/mage/sets/limitedbeta/PhantasmalTerrain.java create mode 100644 Mage.Sets/src/mage/sets/limitedbeta/PowerSink.java create mode 100644 Mage.Sets/src/mage/sets/mirage/PowerSink.java create mode 100644 Mage.Sets/src/mage/sets/revisededition/ManaShort.java create mode 100644 Mage.Sets/src/mage/sets/revisededition/PhantasmalTerrain.java create mode 100644 Mage.Sets/src/mage/sets/revisededition/PowerSink.java create mode 100644 Mage.Sets/src/mage/sets/seventhedition/ManaShort.java create mode 100644 Mage.Sets/src/mage/sets/sixthedition/Forget.java create mode 100644 Mage.Sets/src/mage/sets/sixthedition/GaseousForm.java create mode 100644 Mage.Sets/src/mage/sets/sixthedition/ManaShort.java create mode 100644 Mage.Sets/src/mage/sets/sixthedition/PhantasmalTerrain.java create mode 100644 Mage.Sets/src/mage/sets/sixthedition/PowerSink.java create mode 100644 Mage.Sets/src/mage/sets/sixthedition/Recall.java create mode 100644 Mage.Sets/src/mage/sets/sixthedition/Relearn.java create mode 100644 Mage.Sets/src/mage/sets/sixthedition/SoldeviSage.java create mode 100644 Mage.Sets/src/mage/sets/tempest/GaseousForm.java create mode 100644 Mage.Sets/src/mage/sets/tempest/PowerSink.java create mode 100644 Mage.Sets/src/mage/sets/unlimitededition/ManaShort.java create mode 100644 Mage.Sets/src/mage/sets/unlimitededition/PhantasmalTerrain.java create mode 100644 Mage.Sets/src/mage/sets/unlimitededition/PowerSink.java create mode 100644 Mage.Sets/src/mage/sets/urzassaga/PowerSink.java create mode 100644 Mage.Sets/src/mage/sets/weatherlight/Relearn.java diff --git a/Mage.Sets/src/mage/sets/alliances/SoldeviSage.java b/Mage.Sets/src/mage/sets/alliances/SoldeviSage.java new file mode 100644 index 00000000000..8474668bba0 --- /dev/null +++ b/Mage.Sets/src/mage/sets/alliances/SoldeviSage.java @@ -0,0 +1,130 @@ +/* + * 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.sets.alliances; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.SacrificeTargetCost; +import mage.abilities.costs.common.TapSourceCost; +import mage.abilities.effects.OneShotEffect; +import mage.cards.Card; +import mage.cards.CardImpl; +import mage.cards.Cards; +import mage.cards.CardsImpl; +import mage.constants.CardType; +import mage.constants.Outcome; +import mage.constants.Rarity; +import mage.constants.Zone; +import mage.filter.FilterCard; +import mage.filter.common.FilterControlledLandPermanent; +import mage.game.Game; +import mage.players.Player; +import mage.target.TargetCard; +import mage.target.common.TargetControlledPermanent; + +/** + * + * @author Quercitron + */ +public class SoldeviSage extends CardImpl { + + public SoldeviSage(UUID ownerId) { + super(ownerId, 51, "Soldevi Sage", Rarity.COMMON, new CardType[]{CardType.CREATURE}, "{1}{U}"); + this.expansionSetCode = "ALL"; + this.subtype.add("Human"); + this.subtype.add("Wizard"); + + this.color.setBlue(true); + this.power = new MageInt(1); + this.toughness = new MageInt(1); + + // {tap}, Sacrifice two lands: Draw three cards, then discard one of them. + Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SoldeviSageEffect(), new TapSourceCost()); + ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(2, 2, new FilterControlledLandPermanent("two lands"), true))); + this.addAbility(ability); + } + + public SoldeviSage(final SoldeviSage card) { + super(card); + } + + @Override + public SoldeviSage copy() { + return new SoldeviSage(this); + } +} + +class SoldeviSageEffect extends OneShotEffect { + + public SoldeviSageEffect() { + super(Outcome.DrawCard); + this.staticText = "Draw three cards, then discard one of them"; + } + + public SoldeviSageEffect(final SoldeviSageEffect effect) { + super(effect); + } + + @Override + public SoldeviSageEffect copy() { + return new SoldeviSageEffect(this); + } + + @Override + public boolean apply(Game game, Ability source) { + Player player = game.getPlayer(source.getControllerId()); + if (player != null) { + Cards initialHand = player.getHand().copy(); + player.drawCards(3, game); + Cards drawnCards = new CardsImpl(Zone.PICK); + for (UUID cardId : player.getHand()) { + if (!initialHand.contains(cardId)) { + drawnCards.add(cardId); + } + } + + if (drawnCards.size() > 0) { + TargetCard cardToDiscard = new TargetCard(Zone.PICK, new FilterCard("card to discard")); + cardToDiscard.setRequired(true); + cardToDiscard.setNotTarget(true); + if (player.choose(Outcome.Discard, drawnCards, cardToDiscard, game)) { + Card card = player.getHand().get(cardToDiscard.getFirstTarget(), game); + if (card != null) { + return player.discard(card, source, game); + } + } + } + + return true; + } + return false; + } + +} diff --git a/Mage.Sets/src/mage/sets/fifthedition/Forget.java b/Mage.Sets/src/mage/sets/fifthedition/Forget.java new file mode 100644 index 00000000000..fdfc27e2f53 --- /dev/null +++ b/Mage.Sets/src/mage/sets/fifthedition/Forget.java @@ -0,0 +1,52 @@ +/* + * 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.sets.fifthedition; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class Forget extends mage.sets.homelands.Forget { + + public Forget(UUID ownerId) { + super(ownerId); + this.cardNumber = 89; + this.expansionSetCode = "5ED"; + } + + public Forget(final Forget card) { + super(card); + } + + @Override + public Forget copy() { + return new Forget(this); + } +} diff --git a/Mage.Sets/src/mage/sets/fifthedition/GaseousForm.java b/Mage.Sets/src/mage/sets/fifthedition/GaseousForm.java new file mode 100644 index 00000000000..fbc4a857dde --- /dev/null +++ b/Mage.Sets/src/mage/sets/fifthedition/GaseousForm.java @@ -0,0 +1,52 @@ +/* + * 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.sets.fifthedition; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class GaseousForm extends mage.sets.tempest.GaseousForm { + + public GaseousForm(UUID ownerId) { + super(ownerId); + this.cardNumber = 90; + this.expansionSetCode = "5ED"; + } + + public GaseousForm(final GaseousForm card) { + super(card); + } + + @Override + public GaseousForm copy() { + return new GaseousForm(this); + } +} diff --git a/Mage.Sets/src/mage/sets/fifthedition/PhantasmalTerrain.java b/Mage.Sets/src/mage/sets/fifthedition/PhantasmalTerrain.java new file mode 100644 index 00000000000..4f0a6c3e80e --- /dev/null +++ b/Mage.Sets/src/mage/sets/fifthedition/PhantasmalTerrain.java @@ -0,0 +1,52 @@ +/* + * 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.sets.fifthedition; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class PhantasmalTerrain extends mage.sets.limitedalpha.PhantasmalTerrain { + + public PhantasmalTerrain(UUID ownerId) { + super(ownerId); + this.cardNumber = 107; + this.expansionSetCode = "5ED"; + } + + public PhantasmalTerrain(final PhantasmalTerrain card) { + super(card); + } + + @Override + public PhantasmalTerrain copy() { + return new PhantasmalTerrain(this); + } +} diff --git a/Mage.Sets/src/mage/sets/fifthedition/PowerSink.java b/Mage.Sets/src/mage/sets/fifthedition/PowerSink.java new file mode 100644 index 00000000000..9032aa3e1cf --- /dev/null +++ b/Mage.Sets/src/mage/sets/fifthedition/PowerSink.java @@ -0,0 +1,54 @@ +/* + * 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.sets.fifthedition; + +import java.util.UUID; +import mage.constants.Rarity; + +/** + * + * @author Quercitron + */ +public class PowerSink extends mage.sets.limitedalpha.PowerSink { + + public PowerSink(UUID ownerId) { + super(ownerId); + this.cardNumber = 111; + this.expansionSetCode = "5ED"; + this.rarity = Rarity.UNCOMMON; + } + + public PowerSink(final PowerSink card) { + super(card); + } + + @Override + public PowerSink copy() { + return new PowerSink(this); + } +} diff --git a/Mage.Sets/src/mage/sets/fifthedition/Recall.java b/Mage.Sets/src/mage/sets/fifthedition/Recall.java new file mode 100644 index 00000000000..c5b067cc147 --- /dev/null +++ b/Mage.Sets/src/mage/sets/fifthedition/Recall.java @@ -0,0 +1,113 @@ +/* + * 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.sets.fifthedition; + +import java.util.UUID; +import mage.abilities.Ability; +import mage.abilities.effects.OneShotEffect; +import mage.abilities.effects.common.ExileSpellEffect; +import mage.cards.Card; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.Outcome; +import mage.constants.Rarity; +import mage.constants.Zone; +import mage.filter.FilterCard; +import mage.game.Game; +import mage.players.Player; +import mage.target.common.TargetCardInYourGraveyard; + +/** + * + * @author Quercitron + */ +public class Recall extends CardImpl { + + public Recall(UUID ownerId) { + super(ownerId, 93, "Recall", Rarity.RARE, new CardType[]{CardType.SORCERY}, "{X}{X}{U}"); + this.expansionSetCode = "5ED"; + + this.color.setBlue(true); + + // Discard X cards, then return a card from your graveyard to your hand for each card discarded this way. + this.getSpellAbility().addEffect(new RecallEffect()); + // Exile Recall. + this.getSpellAbility().addEffect(ExileSpellEffect.getInstance()); + } + + public Recall(final Recall card) { + super(card); + } + + @Override + public Recall copy() { + return new Recall(this); + } +} + +class RecallEffect extends OneShotEffect { + + public RecallEffect() { + super(Outcome.ReturnToHand); + this.staticText = "Discard X cards, then return a card from your graveyard to your hand for each card discarded this way. "; + } + + public RecallEffect(final RecallEffect effect) { + super(effect); + } + + @Override + public RecallEffect copy() { + return new RecallEffect(this); + } + + @Override + public boolean apply(Game game, Ability source) { + Player player = game.getPlayer(source.getControllerId()); + if (player != null) { + // Discard X cards + int amount = source.getManaCostsToPay().getX(); + int discarded = Math.min(amount, player.getHand().size()); + player.discard(amount, source, game); + + // then return a card from your graveyard to your hand for each card discarded this way + TargetCardInYourGraveyard target = new TargetCardInYourGraveyard(discarded, new FilterCard()); + target.choose(Outcome.ReturnToHand, player.getId(), source.getSourceId(), game); + for (UUID targetId : target.getTargets()) { + Card card = game.getCard(targetId); + if (card != null) { + player.moveCardToHandWithInfo(card, source.getSourceId(), game, Zone.GRAVEYARD); + } + } + + return true; + } + return false; + } + +} diff --git a/Mage.Sets/src/mage/sets/fourthedition/GaseousForm.java b/Mage.Sets/src/mage/sets/fourthedition/GaseousForm.java new file mode 100644 index 00000000000..dad275152d3 --- /dev/null +++ b/Mage.Sets/src/mage/sets/fourthedition/GaseousForm.java @@ -0,0 +1,52 @@ +/* + * 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.sets.fourthedition; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class GaseousForm extends mage.sets.tempest.GaseousForm { + + public GaseousForm(UUID ownerId) { + super(ownerId); + this.cardNumber = 74; + this.expansionSetCode = "4ED"; + } + + public GaseousForm(final GaseousForm card) { + super(card); + } + + @Override + public GaseousForm copy() { + return new GaseousForm(this); + } +} diff --git a/Mage.Sets/src/mage/sets/fourthedition/ManaShort.java b/Mage.Sets/src/mage/sets/fourthedition/ManaShort.java new file mode 100644 index 00000000000..0c67d367e77 --- /dev/null +++ b/Mage.Sets/src/mage/sets/fourthedition/ManaShort.java @@ -0,0 +1,52 @@ +/* + * 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.sets.fourthedition; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class ManaShort extends mage.sets.limitedalpha.ManaShort { + + public ManaShort(UUID ownerId) { + super(ownerId); + this.cardNumber = 85; + this.expansionSetCode = "4ED"; + } + + public ManaShort(final ManaShort card) { + super(card); + } + + @Override + public ManaShort copy() { + return new ManaShort(this); + } +} diff --git a/Mage.Sets/src/mage/sets/fourthedition/PhantasmalTerrain.java b/Mage.Sets/src/mage/sets/fourthedition/PhantasmalTerrain.java new file mode 100644 index 00000000000..5cafb8e98e9 --- /dev/null +++ b/Mage.Sets/src/mage/sets/fourthedition/PhantasmalTerrain.java @@ -0,0 +1,52 @@ +/* + * 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.sets.fourthedition; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class PhantasmalTerrain extends mage.sets.limitedalpha.PhantasmalTerrain { + + public PhantasmalTerrain(UUID ownerId) { + super(ownerId); + this.cardNumber = 89; + this.expansionSetCode = "4ED"; + } + + public PhantasmalTerrain(final PhantasmalTerrain card) { + super(card); + } + + @Override + public PhantasmalTerrain copy() { + return new PhantasmalTerrain(this); + } +} diff --git a/Mage.Sets/src/mage/sets/fourthedition/PowerSink.java b/Mage.Sets/src/mage/sets/fourthedition/PowerSink.java new file mode 100644 index 00000000000..79761161250 --- /dev/null +++ b/Mage.Sets/src/mage/sets/fourthedition/PowerSink.java @@ -0,0 +1,52 @@ +/* + * 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.sets.fourthedition; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class PowerSink extends mage.sets.limitedalpha.PowerSink { + + public PowerSink(UUID ownerId) { + super(ownerId); + this.cardNumber = 93; + this.expansionSetCode = "4ED"; + } + + public PowerSink(final PowerSink card) { + super(card); + } + + @Override + public PowerSink copy() { + return new PowerSink(this); + } +} diff --git a/Mage.Sets/src/mage/sets/homelands/Forget.java b/Mage.Sets/src/mage/sets/homelands/Forget.java new file mode 100644 index 00000000000..8eda40e1db7 --- /dev/null +++ b/Mage.Sets/src/mage/sets/homelands/Forget.java @@ -0,0 +1,96 @@ +/* + * 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.sets.homelands; + +import java.util.UUID; +import mage.abilities.Ability; +import mage.abilities.effects.OneShotEffect; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.Outcome; +import mage.constants.Rarity; +import mage.game.Game; +import mage.players.Player; +import mage.target.TargetPlayer; + +/** + * + * @author Quercitron + */ +public class Forget extends CardImpl { + + public Forget(UUID ownerId) { + super(ownerId, 32, "Forget", Rarity.RARE, new CardType[]{CardType.SORCERY}, "{U}{U}"); + this.expansionSetCode = "HML"; + + this.color.setBlue(true); + + // Target player discards two cards, then draws as many cards as he or she discarded this way. + this.getSpellAbility().addEffect(new ForgetEffect()); + this.getSpellAbility().addTarget(new TargetPlayer(true)); + } + + public Forget(final Forget card) { + super(card); + } + + @Override + public Forget copy() { + return new Forget(this); + } +} + +class ForgetEffect extends OneShotEffect { + + public ForgetEffect() { + super(Outcome.DrawCard); + this.staticText = "Target player discards two cards, then draws as many cards as he or she discarded this way"; + } + + public ForgetEffect(final ForgetEffect effect) { + super(effect); + } + + @Override + public ForgetEffect copy() { + return new ForgetEffect(this); + } + + @Override + public boolean apply(Game game, Ability source) { + Player targetPlayer = game.getPlayer(source.getFirstTarget()); + if (targetPlayer != null) { + int count = Math.min(2, targetPlayer.getHand().size()); + targetPlayer.discard(2, source, game); + targetPlayer.drawCards(count, game); + return true; + } + return false; + } + +} diff --git a/Mage.Sets/src/mage/sets/iceage/PowerSink.java b/Mage.Sets/src/mage/sets/iceage/PowerSink.java new file mode 100644 index 00000000000..ec1228ef8f3 --- /dev/null +++ b/Mage.Sets/src/mage/sets/iceage/PowerSink.java @@ -0,0 +1,52 @@ +/* + * 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.sets.iceage; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class PowerSink extends mage.sets.limitedalpha.PowerSink { + + public PowerSink(UUID ownerId) { + super(ownerId); + this.cardNumber = 91; + this.expansionSetCode = "ICE"; + } + + public PowerSink(final PowerSink card) { + super(card); + } + + @Override + public PowerSink copy() { + return new PowerSink(this); + } +} diff --git a/Mage.Sets/src/mage/sets/invasion/PhantasmalTerrain.java b/Mage.Sets/src/mage/sets/invasion/PhantasmalTerrain.java new file mode 100644 index 00000000000..b663e07be05 --- /dev/null +++ b/Mage.Sets/src/mage/sets/invasion/PhantasmalTerrain.java @@ -0,0 +1,52 @@ +/* + * 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.sets.invasion; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class PhantasmalTerrain extends mage.sets.limitedalpha.PhantasmalTerrain { + + public PhantasmalTerrain(UUID ownerId) { + super(ownerId); + this.cardNumber = 65; + this.expansionSetCode = "INV"; + } + + public PhantasmalTerrain(final PhantasmalTerrain card) { + super(card); + } + + @Override + public PhantasmalTerrain copy() { + return new PhantasmalTerrain(this); + } +} diff --git a/Mage.Sets/src/mage/sets/legends/GaseousForm.java b/Mage.Sets/src/mage/sets/legends/GaseousForm.java new file mode 100644 index 00000000000..eaf1428e245 --- /dev/null +++ b/Mage.Sets/src/mage/sets/legends/GaseousForm.java @@ -0,0 +1,52 @@ +/* + * 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.sets.legends; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class GaseousForm extends mage.sets.tempest.GaseousForm { + + public GaseousForm(UUID ownerId) { + super(ownerId); + this.cardNumber = 59; + this.expansionSetCode = "LEG"; + } + + public GaseousForm(final GaseousForm card) { + super(card); + } + + @Override + public GaseousForm copy() { + return new GaseousForm(this); + } +} diff --git a/Mage.Sets/src/mage/sets/legends/Recall.java b/Mage.Sets/src/mage/sets/legends/Recall.java new file mode 100644 index 00000000000..22f37e080fa --- /dev/null +++ b/Mage.Sets/src/mage/sets/legends/Recall.java @@ -0,0 +1,52 @@ +/* + * 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.sets.legends; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class Recall extends mage.sets.fifthedition.Recall { + + public Recall(UUID ownerId) { + super(ownerId); + this.cardNumber = 70; + this.expansionSetCode = "LEG"; + } + + public Recall(final Recall card) { + super(card); + } + + @Override + public Recall copy() { + return new Recall(this); + } +} diff --git a/Mage.Sets/src/mage/sets/limitedalpha/ManaShort.java b/Mage.Sets/src/mage/sets/limitedalpha/ManaShort.java new file mode 100644 index 00000000000..bb92f824445 --- /dev/null +++ b/Mage.Sets/src/mage/sets/limitedalpha/ManaShort.java @@ -0,0 +1,105 @@ +/* + * 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.sets.limitedalpha; + +import java.util.List; +import java.util.UUID; +import mage.abilities.Ability; +import mage.abilities.effects.OneShotEffect; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.Outcome; +import mage.constants.Rarity; +import mage.filter.common.FilterLandPermanent; +import mage.filter.predicate.permanent.ControllerIdPredicate; +import mage.game.Game; +import mage.game.permanent.Permanent; +import mage.players.Player; +import mage.target.TargetPlayer; + +/** + * + * @author Quercitron + */ +public class ManaShort extends CardImpl { + + public ManaShort(UUID ownerId) { + super(ownerId, 66, "Mana Short", Rarity.RARE, new CardType[]{CardType.INSTANT}, "{2}{U}"); + this.expansionSetCode = "LEA"; + + this.color.setBlue(true); + + // Tap all lands target player controls and empty his or her mana pool. + this.getSpellAbility().addEffect(new ManaShortEffect()); + this.getSpellAbility().addTarget(new TargetPlayer(true)); + } + + public ManaShort(final ManaShort card) { + super(card); + } + + @Override + public ManaShort copy() { + return new ManaShort(this); + } +} + +class ManaShortEffect extends OneShotEffect { + + public ManaShortEffect() { + super(Outcome.Detriment); + staticText = "Tap all lands target player controls and empty his or her mana pool"; + } + + public ManaShortEffect(final ManaShortEffect effect) { + super(effect); + } + + @Override + public ManaShortEffect copy() { + return new ManaShortEffect(this); + } + + @Override + public boolean apply(Game game, Ability source) { + Player targetPlayer = game.getPlayer(source.getFirstTarget()); + if (targetPlayer != null) { + FilterLandPermanent filter = new FilterLandPermanent(); + filter.add(new ControllerIdPredicate(targetPlayer.getId())); + + List lands = game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getSourceId(), game); + for (Permanent land : lands) { + land.tap(game); + } + + targetPlayer.getManaPool().emptyPool(); + } + return false; + } + +} diff --git a/Mage.Sets/src/mage/sets/limitedalpha/PhantasmalTerrain.java b/Mage.Sets/src/mage/sets/limitedalpha/PhantasmalTerrain.java new file mode 100644 index 00000000000..aef322e94f3 --- /dev/null +++ b/Mage.Sets/src/mage/sets/limitedalpha/PhantasmalTerrain.java @@ -0,0 +1,200 @@ +/* + * 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.sets.limitedalpha; + +import java.util.UUID; +import mage.abilities.Ability; +import mage.abilities.common.AsEntersBattlefieldAbility; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.ContinuousEffectImpl; +import mage.abilities.effects.OneShotEffect; +import mage.abilities.effects.common.AttachEffect; +import mage.abilities.keyword.EnchantAbility; +import mage.abilities.mana.BlackManaAbility; +import mage.abilities.mana.BlueManaAbility; +import mage.abilities.mana.GreenManaAbility; +import mage.abilities.mana.RedManaAbility; +import mage.abilities.mana.WhiteManaAbility; +import mage.cards.CardImpl; +import mage.choices.ChoiceImpl; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.Layer; +import mage.constants.Outcome; +import mage.constants.Rarity; +import mage.constants.SubLayer; +import mage.constants.Zone; +import mage.game.Game; +import mage.game.permanent.Permanent; +import mage.players.Player; +import mage.target.TargetPermanent; +import mage.target.common.TargetLandPermanent; + +/** + * + * @author Quercitron + */ +public class PhantasmalTerrain extends CardImpl { + + public PhantasmalTerrain(UUID ownerId) { + super(ownerId, 69, "Phantasmal Terrain", Rarity.COMMON, new CardType[]{CardType.ENCHANTMENT}, "{U}{U}"); + this.expansionSetCode = "LEA"; + this.subtype.add("Aura"); + + this.color.setBlue(true); + + // Enchant land + TargetPermanent auraTarget = new TargetLandPermanent(); + this.getSpellAbility().addTarget(auraTarget); + this.getSpellAbility().addEffect(new AttachEffect(Outcome.Detriment)); + this.addAbility(new EnchantAbility(auraTarget.getTargetName())); + + // As Phantasmal Terrain enters the battlefield, choose a basic land type. + this.addAbility(new AsEntersBattlefieldAbility(new PhantasmalTerrainChooseEffect())); + + // Enchanted land is the chosen type. + this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new PhantasmalTerrainContinuousEffect())); + } + + public PhantasmalTerrain(final PhantasmalTerrain card) { + super(card); + } + + @Override + public PhantasmalTerrain copy() { + return new PhantasmalTerrain(this); + } +} + +class PhantasmalTerrainChooseEffect extends OneShotEffect { + + public PhantasmalTerrainChooseEffect() { + super(Outcome.Neutral); + this.staticText = "choose a basic land type."; + } + + public PhantasmalTerrainChooseEffect(final PhantasmalTerrainChooseEffect effect) { + super(effect); + } + + @Override + public PhantasmalTerrainChooseEffect copy() { + return new PhantasmalTerrainChooseEffect(this); + } + + @Override + public boolean apply(Game game, Ability source) { + Player player = game.getPlayer(source.getControllerId()); + if (player != null) { + ChoiceImpl choices = new ChoiceImpl(true); + choices.setMessage("Choose basic land type"); + choices.isRequired(); + choices.getChoices().add("Forest"); + choices.getChoices().add("Plains"); + choices.getChoices().add("Mountain"); + choices.getChoices().add("Island"); + choices.getChoices().add("Swamp"); + if (player.choose(Outcome.Neutral, choices, game)) { + game.informPlayers(new StringBuilder("Phantasmal Terrain: ").append(" chosen basic land type is ").append(choices.getChoice()).toString()); + game.getState().setValue(source.getSourceId().toString() + "_PhantasmalTerrain", choices.getChoice()); + return true; + } + } + return false; + } + +} + +class PhantasmalTerrainContinuousEffect extends ContinuousEffectImpl { + + public PhantasmalTerrainContinuousEffect(){ + super(Duration.WhileOnBattlefield, Outcome.Neutral); + this.staticText = "Enchanted land is the chosen type."; + } + + public PhantasmalTerrainContinuousEffect(final PhantasmalTerrainContinuousEffect effect) { + super(effect); + } + + @Override + public PhantasmalTerrainContinuousEffect copy() { + return new PhantasmalTerrainContinuousEffect(this); + } + + @Override + public boolean apply(Layer layer, SubLayer sublayer, Ability source, Game game) { + Permanent enchantment = game.getPermanent(source.getSourceId()); + String choice = (String) game.getState().getValue(source.getSourceId().toString() + "_PhantasmalTerrain"); + if (enchantment != null && enchantment.getAttachedTo() != null && choice != null) { + Permanent land = game.getPermanent(enchantment.getAttachedTo()); + if (land != null) { + switch (layer) { + case TypeChangingEffects_4: + if (sublayer == SubLayer.NA) { + land.getSubtype().clear(); + land.getSubtype().add(choice); + } + break; + case AbilityAddingRemovingEffects_6: + if (sublayer == SubLayer.NA) { + land.getAbilities().clear(); + if (choice.equals("Forest")) { + land.addAbility(new GreenManaAbility(), source.getSourceId(), game); + } + if (choice.equals("Plains")) { + land.addAbility(new WhiteManaAbility(), source.getSourceId(), game); + } + if (choice.equals("Mountain")) { + land.addAbility(new RedManaAbility(), source.getSourceId(), game); + } + if (choice.equals("Island")) { + land.addAbility(new BlueManaAbility(), source.getSourceId(), game); + } + if (choice.equals("Swamp")) { + land.addAbility(new BlackManaAbility(), source.getSourceId(), game); + } + } + break; + } + return true; + } + } + return false; + } + + @Override + public boolean apply(Game game, Ability source) { + return false; + } + + @Override + public boolean hasLayer(Layer layer) { + return layer == Layer.AbilityAddingRemovingEffects_6 || layer == Layer.TypeChangingEffects_4; + } + +} diff --git a/Mage.Sets/src/mage/sets/limitedalpha/PowerSink.java b/Mage.Sets/src/mage/sets/limitedalpha/PowerSink.java new file mode 100644 index 00000000000..005942a64e2 --- /dev/null +++ b/Mage.Sets/src/mage/sets/limitedalpha/PowerSink.java @@ -0,0 +1,136 @@ +/* + * 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.sets.limitedalpha; + +import java.util.List; +import java.util.UUID; +import mage.MageObject; +import mage.abilities.Abilities; +import mage.abilities.Ability; +import mage.abilities.costs.mana.GenericManaCost; +import mage.abilities.effects.OneShotEffect; +import mage.abilities.mana.ManaAbility; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.Outcome; +import mage.constants.Rarity; +import mage.filter.common.FilterLandPermanent; +import mage.game.Game; +import mage.game.permanent.Permanent; +import mage.game.stack.StackObject; +import mage.players.Player; +import mage.target.TargetSpell; + +/** + * + * @author Quercitron + */ +public class PowerSink extends CardImpl { + + public PowerSink(UUID ownerId) { + super(ownerId, 73, "Power Sink", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{X}{U}"); + this.expansionSetCode = "LEA"; + + this.color.setBlue(true); + + // Counter target spell unless its controller pays {X}. If he or she doesn't, that player taps all lands with mana abilities he or she controls and empties his or her mana pool. + this.getSpellAbility().addEffect(new PowerSinkCounterUnlessPaysEffect()); + this.getSpellAbility().addTarget(new TargetSpell()); + } + + public PowerSink(final PowerSink card) { + super(card); + } + + @Override + public PowerSink copy() { + return new PowerSink(this); + } +} + +class PowerSinkCounterUnlessPaysEffect extends OneShotEffect { + + public PowerSinkCounterUnlessPaysEffect() { + super(Outcome.Detriment); + this.staticText = "Counter target spell unless its controller pays {X}. If he or she doesn't, that player taps all lands with mana abilities he or she controls and empties his or her mana pool."; + } + + public PowerSinkCounterUnlessPaysEffect(final PowerSinkCounterUnlessPaysEffect effect) { + super(effect); + } + + @Override + public PowerSinkCounterUnlessPaysEffect copy() { + return new PowerSinkCounterUnlessPaysEffect(this); + } + + @Override + public boolean apply(Game game, Ability source) { + StackObject spell = game.getStack().getStackObject(targetPointer.getFirst(game, source)); + if (spell != null) { + Player player = game.getPlayer(spell.getControllerId()); + Player controller = game.getPlayer(source.getControllerId()); + MageObject sourceObject = game.getObject(source.getSourceId()); + if (player != null && controller != null && sourceObject != null) { + int amount = source.getManaCostsToPay().getX(); + if (amount > 0) { + GenericManaCost cost = new GenericManaCost(amount); + StringBuilder sb = new StringBuilder("Pay ").append(cost.getText()).append("?"); + if (player.chooseUse(Outcome.Benefit, sb.toString(), game)) { + if (cost.pay(source, game, source.getSourceId(), player.getId(), false)) { + game.informPlayers(new StringBuilder(sourceObject.getName()).append(": additional cost was paid").toString()); + return true; + } + } + + // Counter target spell unless its controller pays {X} + if (game.getStack().counter(source.getFirstTarget(), source.getSourceId(), game)) { + game.informPlayers(new StringBuilder(sourceObject.getName()).append(": additional cost wasn't paid - countering ").append(spell.getName()).toString()); + } + + // that player taps all lands with mana abilities he or she controls... + List lands = game.getBattlefield().getAllActivePermanents(new FilterLandPermanent(), player.getId(), game); + for (Permanent land : lands) { + Abilities landAbilities = land.getAbilities(); + for (Ability ability : landAbilities) { + if (ability instanceof ManaAbility) { + land.tap(game); + } + } + } + + // ...and empties his or her mana pool + player.getManaPool().emptyPool(); + } + return true; + } + } + return false; + } + +} diff --git a/Mage.Sets/src/mage/sets/limitedbeta/ManaShort.java b/Mage.Sets/src/mage/sets/limitedbeta/ManaShort.java new file mode 100644 index 00000000000..a9fdf2ff2eb --- /dev/null +++ b/Mage.Sets/src/mage/sets/limitedbeta/ManaShort.java @@ -0,0 +1,52 @@ +/* + * 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.sets.limitedbeta; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class ManaShort extends mage.sets.limitedalpha.ManaShort { + + public ManaShort(UUID ownerId) { + super(ownerId); + this.cardNumber = 66; + this.expansionSetCode = "LEB"; + } + + public ManaShort(final ManaShort card) { + super(card); + } + + @Override + public ManaShort copy() { + return new ManaShort(this); + } +} diff --git a/Mage.Sets/src/mage/sets/limitedbeta/PhantasmalTerrain.java b/Mage.Sets/src/mage/sets/limitedbeta/PhantasmalTerrain.java new file mode 100644 index 00000000000..f742419f6a3 --- /dev/null +++ b/Mage.Sets/src/mage/sets/limitedbeta/PhantasmalTerrain.java @@ -0,0 +1,52 @@ +/* + * 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.sets.limitedbeta; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class PhantasmalTerrain extends mage.sets.limitedalpha.PhantasmalTerrain { + + public PhantasmalTerrain(UUID ownerId) { + super(ownerId); + this.cardNumber = 69; + this.expansionSetCode = "LEB"; + } + + public PhantasmalTerrain(final PhantasmalTerrain card) { + super(card); + } + + @Override + public PhantasmalTerrain copy() { + return new PhantasmalTerrain(this); + } +} diff --git a/Mage.Sets/src/mage/sets/limitedbeta/PowerSink.java b/Mage.Sets/src/mage/sets/limitedbeta/PowerSink.java new file mode 100644 index 00000000000..8cb56edad87 --- /dev/null +++ b/Mage.Sets/src/mage/sets/limitedbeta/PowerSink.java @@ -0,0 +1,52 @@ +/* + * 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.sets.limitedbeta; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class PowerSink extends mage.sets.limitedalpha.PowerSink { + + public PowerSink(UUID ownerId) { + super(ownerId); + this.cardNumber = 73; + this.expansionSetCode = "LEB"; + } + + public PowerSink(final PowerSink card) { + super(card); + } + + @Override + public PowerSink copy() { + return new PowerSink(this); + } +} diff --git a/Mage.Sets/src/mage/sets/mirage/PowerSink.java b/Mage.Sets/src/mage/sets/mirage/PowerSink.java new file mode 100644 index 00000000000..ba5c8ce1293 --- /dev/null +++ b/Mage.Sets/src/mage/sets/mirage/PowerSink.java @@ -0,0 +1,52 @@ +/* + * 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.sets.mirage; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class PowerSink extends mage.sets.limitedalpha.PowerSink { + + public PowerSink(UUID ownerId) { + super(ownerId); + this.cardNumber = 83; + this.expansionSetCode = "MIR"; + } + + public PowerSink(final PowerSink card) { + super(card); + } + + @Override + public PowerSink copy() { + return new PowerSink(this); + } +} diff --git a/Mage.Sets/src/mage/sets/revisededition/ManaShort.java b/Mage.Sets/src/mage/sets/revisededition/ManaShort.java new file mode 100644 index 00000000000..617c16281f5 --- /dev/null +++ b/Mage.Sets/src/mage/sets/revisededition/ManaShort.java @@ -0,0 +1,52 @@ +/* + * 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.sets.revisededition; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class ManaShort extends mage.sets.limitedalpha.ManaShort { + + public ManaShort(UUID ownerId) { + super(ownerId); + this.cardNumber = 67; + this.expansionSetCode = "3ED"; + } + + public ManaShort(final ManaShort card) { + super(card); + } + + @Override + public ManaShort copy() { + return new ManaShort(this); + } +} diff --git a/Mage.Sets/src/mage/sets/revisededition/PhantasmalTerrain.java b/Mage.Sets/src/mage/sets/revisededition/PhantasmalTerrain.java new file mode 100644 index 00000000000..d63910cb82d --- /dev/null +++ b/Mage.Sets/src/mage/sets/revisededition/PhantasmalTerrain.java @@ -0,0 +1,52 @@ +/* + * 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.sets.revisededition; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class PhantasmalTerrain extends mage.sets.limitedalpha.PhantasmalTerrain { + + public PhantasmalTerrain(UUID ownerId) { + super(ownerId); + this.cardNumber = 70; + this.expansionSetCode = "3ED"; + } + + public PhantasmalTerrain(final PhantasmalTerrain card) { + super(card); + } + + @Override + public PhantasmalTerrain copy() { + return new PhantasmalTerrain(this); + } +} diff --git a/Mage.Sets/src/mage/sets/revisededition/PowerSink.java b/Mage.Sets/src/mage/sets/revisededition/PowerSink.java new file mode 100644 index 00000000000..24b3c1d3925 --- /dev/null +++ b/Mage.Sets/src/mage/sets/revisededition/PowerSink.java @@ -0,0 +1,52 @@ +/* + * 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.sets.revisededition; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class PowerSink extends mage.sets.limitedalpha.PowerSink { + + public PowerSink(UUID ownerId) { + super(ownerId); + this.cardNumber = 74; + this.expansionSetCode = "3ED"; + } + + public PowerSink(final PowerSink card) { + super(card); + } + + @Override + public PowerSink copy() { + return new PowerSink(this); + } +} diff --git a/Mage.Sets/src/mage/sets/seventhedition/ManaShort.java b/Mage.Sets/src/mage/sets/seventhedition/ManaShort.java new file mode 100644 index 00000000000..57dd7cd3f9e --- /dev/null +++ b/Mage.Sets/src/mage/sets/seventhedition/ManaShort.java @@ -0,0 +1,52 @@ +/* + * 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.sets.seventhedition; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class ManaShort extends mage.sets.limitedalpha.ManaShort { + + public ManaShort(UUID ownerId) { + super(ownerId); + this.cardNumber = 86; + this.expansionSetCode = "7ED"; + } + + public ManaShort(final ManaShort card) { + super(card); + } + + @Override + public ManaShort copy() { + return new ManaShort(this); + } +} diff --git a/Mage.Sets/src/mage/sets/sixthedition/Forget.java b/Mage.Sets/src/mage/sets/sixthedition/Forget.java new file mode 100644 index 00000000000..6128ef54ef2 --- /dev/null +++ b/Mage.Sets/src/mage/sets/sixthedition/Forget.java @@ -0,0 +1,52 @@ +/* + * 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.sets.sixthedition; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class Forget extends mage.sets.homelands.Forget { + + public Forget(UUID ownerId) { + super(ownerId); + this.cardNumber = 70; + this.expansionSetCode = "6ED"; + } + + public Forget(final Forget card) { + super(card); + } + + @Override + public Forget copy() { + return new Forget(this); + } +} diff --git a/Mage.Sets/src/mage/sets/sixthedition/GaseousForm.java b/Mage.Sets/src/mage/sets/sixthedition/GaseousForm.java new file mode 100644 index 00000000000..80c91defa81 --- /dev/null +++ b/Mage.Sets/src/mage/sets/sixthedition/GaseousForm.java @@ -0,0 +1,52 @@ +/* + * 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.sets.sixthedition; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class GaseousForm extends mage.sets.tempest.GaseousForm { + + public GaseousForm(UUID ownerId) { + super(ownerId); + this.cardNumber = 71; + this.expansionSetCode = "6ED"; + } + + public GaseousForm(final GaseousForm card) { + super(card); + } + + @Override + public GaseousForm copy() { + return new GaseousForm(this); + } +} diff --git a/Mage.Sets/src/mage/sets/sixthedition/ManaShort.java b/Mage.Sets/src/mage/sets/sixthedition/ManaShort.java new file mode 100644 index 00000000000..4c22bcdd382 --- /dev/null +++ b/Mage.Sets/src/mage/sets/sixthedition/ManaShort.java @@ -0,0 +1,52 @@ +/* + * 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.sets.sixthedition; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class ManaShort extends mage.sets.limitedalpha.ManaShort { + + public ManaShort(UUID ownerId) { + super(ownerId); + this.cardNumber = 80; + this.expansionSetCode = "6ED"; + } + + public ManaShort(final ManaShort card) { + super(card); + } + + @Override + public ManaShort copy() { + return new ManaShort(this); + } +} diff --git a/Mage.Sets/src/mage/sets/sixthedition/PhantasmalTerrain.java b/Mage.Sets/src/mage/sets/sixthedition/PhantasmalTerrain.java new file mode 100644 index 00000000000..ad3b7639817 --- /dev/null +++ b/Mage.Sets/src/mage/sets/sixthedition/PhantasmalTerrain.java @@ -0,0 +1,52 @@ +/* + * 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.sets.sixthedition; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class PhantasmalTerrain extends mage.sets.limitedalpha.PhantasmalTerrain { + + public PhantasmalTerrain(UUID ownerId) { + super(ownerId); + this.cardNumber = 84; + this.expansionSetCode = "6ED"; + } + + public PhantasmalTerrain(final PhantasmalTerrain card) { + super(card); + } + + @Override + public PhantasmalTerrain copy() { + return new PhantasmalTerrain(this); + } +} diff --git a/Mage.Sets/src/mage/sets/sixthedition/PowerSink.java b/Mage.Sets/src/mage/sets/sixthedition/PowerSink.java new file mode 100644 index 00000000000..229266fdba8 --- /dev/null +++ b/Mage.Sets/src/mage/sets/sixthedition/PowerSink.java @@ -0,0 +1,54 @@ +/* + * 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.sets.sixthedition; + +import java.util.UUID; +import mage.constants.Rarity; + +/** + * + * @author Quercitron + */ +public class PowerSink extends mage.sets.limitedalpha.PowerSink { + + public PowerSink(UUID ownerId) { + super(ownerId); + this.cardNumber = 87; + this.expansionSetCode = "6ED"; + this.rarity = Rarity.UNCOMMON; + } + + public PowerSink(final PowerSink card) { + super(card); + } + + @Override + public PowerSink copy() { + return new PowerSink(this); + } +} diff --git a/Mage.Sets/src/mage/sets/sixthedition/Recall.java b/Mage.Sets/src/mage/sets/sixthedition/Recall.java new file mode 100644 index 00000000000..deb03576a8b --- /dev/null +++ b/Mage.Sets/src/mage/sets/sixthedition/Recall.java @@ -0,0 +1,52 @@ +/* + * 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.sets.sixthedition; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class Recall extends mage.sets.fifthedition.Recall { + + public Recall(UUID ownerId) { + super(ownerId); + this.cardNumber = 92; + this.expansionSetCode = "6ED"; + } + + public Recall(final Recall card) { + super(card); + } + + @Override + public Recall copy() { + return new Recall(this); + } +} diff --git a/Mage.Sets/src/mage/sets/sixthedition/Relearn.java b/Mage.Sets/src/mage/sets/sixthedition/Relearn.java new file mode 100644 index 00000000000..80062f2c43b --- /dev/null +++ b/Mage.Sets/src/mage/sets/sixthedition/Relearn.java @@ -0,0 +1,52 @@ +/* + * 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.sets.sixthedition; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class Relearn extends mage.sets.weatherlight.Relearn { + + public Relearn(UUID ownerId) { + super(ownerId); + this.cardNumber = 93; + this.expansionSetCode = "6ED"; + } + + public Relearn(final Relearn card) { + super(card); + } + + @Override + public Relearn copy() { + return new Relearn(this); + } +} diff --git a/Mage.Sets/src/mage/sets/sixthedition/SoldeviSage.java b/Mage.Sets/src/mage/sets/sixthedition/SoldeviSage.java new file mode 100644 index 00000000000..11fe8259eed --- /dev/null +++ b/Mage.Sets/src/mage/sets/sixthedition/SoldeviSage.java @@ -0,0 +1,54 @@ +/* + * 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.sets.sixthedition; + +import java.util.UUID; +import mage.constants.Rarity; + +/** + * + * @author Quercitron + */ +public class SoldeviSage extends mage.sets.alliances.SoldeviSage { + + public SoldeviSage(UUID ownerId) { + super(ownerId); + this.cardNumber = 99; + this.expansionSetCode = "6ED"; + this.rarity = Rarity.UNCOMMON; + } + + public SoldeviSage(final SoldeviSage card) { + super(card); + } + + @Override + public SoldeviSage copy() { + return new SoldeviSage(this); + } +} diff --git a/Mage.Sets/src/mage/sets/tempest/GaseousForm.java b/Mage.Sets/src/mage/sets/tempest/GaseousForm.java new file mode 100644 index 00000000000..76aef637c75 --- /dev/null +++ b/Mage.Sets/src/mage/sets/tempest/GaseousForm.java @@ -0,0 +1,76 @@ +/* + * 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.sets.tempest; + +import java.util.UUID; +import mage.abilities.Ability; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.common.AttachEffect; +import mage.abilities.effects.common.PreventAllDamageToAndByAttachedEffect; +import mage.abilities.keyword.EnchantAbility; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.Outcome; +import mage.constants.Rarity; +import mage.constants.Zone; +import mage.target.TargetPermanent; +import mage.target.common.TargetCreaturePermanent; + +/** + * + * @author Quercitron + */ +public class GaseousForm extends CardImpl { + + public GaseousForm(UUID ownerId) { + super(ownerId, 65, "Gaseous Form", Rarity.COMMON, new CardType[]{CardType.ENCHANTMENT}, "{2}{U}"); + this.expansionSetCode = "TMP"; + this.subtype.add("Aura"); + + this.color.setBlue(true); + + // Enchant creature + TargetPermanent auraTarget = new TargetCreaturePermanent(); + this.getSpellAbility().addTarget(auraTarget); + this.getSpellAbility().addEffect(new AttachEffect(Outcome.Neutral)); + this.addAbility(new EnchantAbility(auraTarget.getTargetName())); + + // Prevent all combat damage that would be dealt to and dealt by enchanted creature. + this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new PreventAllDamageToAndByAttachedEffect(Duration.WhileOnBattlefield, "enchanted creature", true))); + } + + public GaseousForm(final GaseousForm card) { + super(card); + } + + @Override + public GaseousForm copy() { + return new GaseousForm(this); + } +} diff --git a/Mage.Sets/src/mage/sets/tempest/PowerSink.java b/Mage.Sets/src/mage/sets/tempest/PowerSink.java new file mode 100644 index 00000000000..52ff92dbf1e --- /dev/null +++ b/Mage.Sets/src/mage/sets/tempest/PowerSink.java @@ -0,0 +1,52 @@ +/* + * 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.sets.tempest; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class PowerSink extends mage.sets.limitedalpha.PowerSink { + + public PowerSink(UUID ownerId) { + super(ownerId); + this.cardNumber = 78; + this.expansionSetCode = "TMP"; + } + + public PowerSink(final PowerSink card) { + super(card); + } + + @Override + public PowerSink copy() { + return new PowerSink(this); + } +} diff --git a/Mage.Sets/src/mage/sets/unlimitededition/ManaShort.java b/Mage.Sets/src/mage/sets/unlimitededition/ManaShort.java new file mode 100644 index 00000000000..128c3b93465 --- /dev/null +++ b/Mage.Sets/src/mage/sets/unlimitededition/ManaShort.java @@ -0,0 +1,52 @@ +/* + * 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.sets.unlimitededition; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class ManaShort extends mage.sets.limitedalpha.ManaShort { + + public ManaShort(UUID ownerId) { + super(ownerId); + this.cardNumber = 66; + this.expansionSetCode = "2ED"; + } + + public ManaShort(final ManaShort card) { + super(card); + } + + @Override + public ManaShort copy() { + return new ManaShort(this); + } +} diff --git a/Mage.Sets/src/mage/sets/unlimitededition/PhantasmalTerrain.java b/Mage.Sets/src/mage/sets/unlimitededition/PhantasmalTerrain.java new file mode 100644 index 00000000000..41a7a5b9961 --- /dev/null +++ b/Mage.Sets/src/mage/sets/unlimitededition/PhantasmalTerrain.java @@ -0,0 +1,52 @@ +/* + * 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.sets.unlimitededition; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class PhantasmalTerrain extends mage.sets.limitedalpha.PhantasmalTerrain { + + public PhantasmalTerrain(UUID ownerId) { + super(ownerId); + this.cardNumber = 69; + this.expansionSetCode = "2ED"; + } + + public PhantasmalTerrain(final PhantasmalTerrain card) { + super(card); + } + + @Override + public PhantasmalTerrain copy() { + return new PhantasmalTerrain(this); + } +} diff --git a/Mage.Sets/src/mage/sets/unlimitededition/PowerSink.java b/Mage.Sets/src/mage/sets/unlimitededition/PowerSink.java new file mode 100644 index 00000000000..8f9505eed43 --- /dev/null +++ b/Mage.Sets/src/mage/sets/unlimitededition/PowerSink.java @@ -0,0 +1,52 @@ +/* + * 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.sets.unlimitededition; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class PowerSink extends mage.sets.limitedalpha.PowerSink { + + public PowerSink(UUID ownerId) { + super(ownerId); + this.cardNumber = 73; + this.expansionSetCode = "2ED"; + } + + public PowerSink(final PowerSink card) { + super(card); + } + + @Override + public PowerSink copy() { + return new PowerSink(this); + } +} diff --git a/Mage.Sets/src/mage/sets/urzassaga/PowerSink.java b/Mage.Sets/src/mage/sets/urzassaga/PowerSink.java new file mode 100644 index 00000000000..c83e02af34c --- /dev/null +++ b/Mage.Sets/src/mage/sets/urzassaga/PowerSink.java @@ -0,0 +1,52 @@ +/* + * 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.sets.urzassaga; + +import java.util.UUID; + +/** + * + * @author Quercitron + */ +public class PowerSink extends mage.sets.limitedalpha.PowerSink { + + public PowerSink(UUID ownerId) { + super(ownerId); + this.cardNumber = 89; + this.expansionSetCode = "USG"; + } + + public PowerSink(final PowerSink card) { + super(card); + } + + @Override + public PowerSink copy() { + return new PowerSink(this); + } +} diff --git a/Mage.Sets/src/mage/sets/weatherlight/Relearn.java b/Mage.Sets/src/mage/sets/weatherlight/Relearn.java new file mode 100644 index 00000000000..1a3e6fe04bc --- /dev/null +++ b/Mage.Sets/src/mage/sets/weatherlight/Relearn.java @@ -0,0 +1,73 @@ +/* + * 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.sets.weatherlight; + +import java.util.UUID; +import mage.abilities.effects.common.ReturnFromGraveyardToHandTargetEffect; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.Rarity; +import mage.filter.FilterCard; +import mage.filter.predicate.Predicates; +import mage.filter.predicate.mageobject.CardTypePredicate; +import mage.target.common.TargetCardInYourGraveyard; + +/** + * + * @author Quercitron + */ +public class Relearn extends CardImpl { + + public static final FilterCard filter = new FilterCard("instant or sorcery card from your graveyard"); + + static { + filter.add(Predicates.or( + new CardTypePredicate(CardType.INSTANT), + new CardTypePredicate(CardType.SORCERY))); + } + + public Relearn(UUID ownerId) { + super(ownerId, 51, "Relearn", Rarity.UNCOMMON, new CardType[]{CardType.SORCERY}, "{1}{U}{U}"); + this.expansionSetCode = "WTH"; + + this.color.setBlue(true); + + // Return target instant or sorcery card from your graveyard to your hand. + this.getSpellAbility().addEffect(new ReturnFromGraveyardToHandTargetEffect()); + this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(filter)); + } + + public Relearn(final Relearn card) { + super(card); + } + + @Override + public Relearn copy() { + return new Relearn(this); + } +}