From 8a220c8bdfd65873a1579781e0b34fc8cd294fc7 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Tue, 7 May 2013 08:22:34 +0200 Subject: [PATCH] [DGM] Down - Dirty, Far - Away, Profit - Loss, Protect - Serve --- .../src/mage/sets/dragonsmaze/DownDirty.java | 77 +++++++++++++++++ .../src/mage/sets/dragonsmaze/FarAway.java | 78 ++++++++++++++++++ .../src/mage/sets/dragonsmaze/ProfitLoss.java | 82 +++++++++++++++++++ .../mage/sets/dragonsmaze/ProtectServe.java | 76 +++++++++++++++++ .../mage/sets/magic2010/GloriousCharge.java | 2 + 5 files changed, 315 insertions(+) create mode 100644 Mage.Sets/src/mage/sets/dragonsmaze/DownDirty.java create mode 100644 Mage.Sets/src/mage/sets/dragonsmaze/FarAway.java create mode 100644 Mage.Sets/src/mage/sets/dragonsmaze/ProfitLoss.java create mode 100644 Mage.Sets/src/mage/sets/dragonsmaze/ProtectServe.java diff --git a/Mage.Sets/src/mage/sets/dragonsmaze/DownDirty.java b/Mage.Sets/src/mage/sets/dragonsmaze/DownDirty.java new file mode 100644 index 0000000000..086ee95030 --- /dev/null +++ b/Mage.Sets/src/mage/sets/dragonsmaze/DownDirty.java @@ -0,0 +1,77 @@ +/* + * 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.dragonsmaze; + +import java.util.UUID; +import mage.Constants.CardType; +import mage.Constants.Rarity; +import mage.abilities.effects.common.DiscardTargetEffect; +import mage.abilities.effects.common.ReturnFromGraveyardToHandTargetEffect; +import mage.cards.SplitCard; +import mage.target.TargetPlayer; +import mage.target.common.TargetCardInYourGraveyard; + +/** + * + * @author LevelX2 + */ + + +public class DownDirty extends SplitCard { + + public DownDirty(UUID ownerId) { + super(ownerId, 126, "Down", "Dirty", Rarity.UNCOMMON, new CardType[]{CardType.SORCERY}, "{3}{B}", "{2}{G}", true); + this.expansionSetCode = "DGM"; + + this.color.setBlack(true); + this.color.setGreen(true); + + // Down + // Target player discards two cards. + getLeftHalfCard().getColor().setBlack(true); + getLeftHalfCard().getSpellAbility().addEffect(new DiscardTargetEffect(2)); + getLeftHalfCard().getSpellAbility().addTarget(new TargetPlayer(true)); + + // Dirty + // Return target card from your graveyard to your hand. + getRightHalfCard().getColor().setGreen(true); + getRightHalfCard().getSpellAbility().addEffect(new ReturnFromGraveyardToHandTargetEffect()); + getRightHalfCard().getSpellAbility().addTarget(new TargetCardInYourGraveyard()); + + } + + public DownDirty(final DownDirty card) { + super(card); + } + + @Override + public DownDirty copy() { + return new DownDirty(this); + } +} diff --git a/Mage.Sets/src/mage/sets/dragonsmaze/FarAway.java b/Mage.Sets/src/mage/sets/dragonsmaze/FarAway.java new file mode 100644 index 0000000000..7a30cf398c --- /dev/null +++ b/Mage.Sets/src/mage/sets/dragonsmaze/FarAway.java @@ -0,0 +1,78 @@ +/* + * 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.dragonsmaze; + +import java.util.UUID; +import mage.Constants.CardType; +import mage.Constants.Rarity; +import mage.abilities.effects.common.ReturnToHandTargetEffect; +import mage.abilities.effects.common.SacrificeEffect; +import mage.cards.SplitCard; +import mage.filter.common.FilterCreaturePermanent; +import mage.target.TargetPlayer; +import mage.target.common.TargetCreaturePermanent; + +/** + * + * @author LevelX2 + */ + + +public class FarAway extends SplitCard { + + public FarAway(UUID ownerId) { + super(ownerId, 127, "Far", "Away", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{1}{U}", "{2}{B}", true); + this.expansionSetCode = "DGM"; + + this.color.setBlue(true); + this.color.setBlack(true); + + // Far + // Return target creature to its owner's hand. + getLeftHalfCard().getColor().setBlue(true); + getLeftHalfCard().getSpellAbility().addEffect(new ReturnToHandTargetEffect()); + getLeftHalfCard().getSpellAbility().addTarget(new TargetCreaturePermanent(true)); + + // Away + // Target player sacrifices a creature. + getRightHalfCard().getColor().setBlack(true); + getRightHalfCard().getSpellAbility().addEffect(new SacrificeEffect(new FilterCreaturePermanent(), 1, "Target player")); + getRightHalfCard().getSpellAbility().addTarget(new TargetPlayer(true)); + + } + + public FarAway(final FarAway card) { + super(card); + } + + @Override + public FarAway copy() { + return new FarAway(this); + } +} diff --git a/Mage.Sets/src/mage/sets/dragonsmaze/ProfitLoss.java b/Mage.Sets/src/mage/sets/dragonsmaze/ProfitLoss.java new file mode 100644 index 0000000000..681076f79b --- /dev/null +++ b/Mage.Sets/src/mage/sets/dragonsmaze/ProfitLoss.java @@ -0,0 +1,82 @@ +/* + * 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.dragonsmaze; + +import java.util.UUID; +import mage.Constants; +import mage.Constants.CardType; +import mage.Constants.Duration; +import mage.Constants.Rarity; +import mage.abilities.effects.common.continious.BoostAllEffect; +import mage.abilities.effects.common.continious.BoostControlledEffect; +import mage.cards.SplitCard; +import mage.filter.common.FilterCreaturePermanent; +import mage.filter.predicate.permanent.ControllerPredicate; + +/** + * + * @author LevelX2 + */ + + +public class ProfitLoss extends SplitCard { + + private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Creatures your opponents control"); + static { + filter.add(new ControllerPredicate(Constants.TargetController.OPPONENT)); + } + + public ProfitLoss(UUID ownerId) { + super(ownerId, 130, "Profit", "Loss", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{1}{W}", "{2}{B}", true); + this.expansionSetCode = "DGM"; + + this.color.setWhite(true); + this.color.setBlack(true); + + // Profit + // Creatures you control get +1/+1 until end of turn. + getLeftHalfCard().getColor().setBlue(true); + getLeftHalfCard().getSpellAbility().addEffect(new BoostControlledEffect(1,1, Duration.EndOfTurn, new FilterCreaturePermanent())); + + // Loss + // Creatures your opponents control get -1/-1 until end of turn. + getRightHalfCard().getColor().setBlack(true); + getRightHalfCard().getSpellAbility().addEffect(new BoostAllEffect(-1, -1, Duration.EndOfTurn, filter, false)); + + } + + public ProfitLoss(final ProfitLoss card) { + super(card); + } + + @Override + public ProfitLoss copy() { + return new ProfitLoss(this); + } +} diff --git a/Mage.Sets/src/mage/sets/dragonsmaze/ProtectServe.java b/Mage.Sets/src/mage/sets/dragonsmaze/ProtectServe.java new file mode 100644 index 0000000000..6d4771cea5 --- /dev/null +++ b/Mage.Sets/src/mage/sets/dragonsmaze/ProtectServe.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.dragonsmaze; + +import java.util.UUID; +import mage.Constants.CardType; +import mage.Constants.Duration; +import mage.Constants.Rarity; +import mage.abilities.effects.common.continious.BoostTargetEffect; +import mage.cards.SplitCard; +import mage.target.common.TargetCreaturePermanent; + +/** + * + * @author LevelX2 + */ + + +public class ProtectServe extends SplitCard { + + public ProtectServe(UUID ownerId) { + super(ownerId, 131, "Protect", "Serve", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{2}{W}", "{1}{U}", true); + this.expansionSetCode = "DGM"; + + this.color.setWhite(true); + this.color.setBlue(true); + + // Protect + // Target creature gets +2/+4 until end of turn. + getLeftHalfCard().getColor().setWhite(true); + getLeftHalfCard().getSpellAbility().addEffect(new BoostTargetEffect(2,4, Duration.EndOfTurn)); + getLeftHalfCard().getSpellAbility().addTarget(new TargetCreaturePermanent(true)); + + // Serve + // Target creature gets -6/-0 until end of turn. + getRightHalfCard().getColor().setBlue(true); + getRightHalfCard().getSpellAbility().addEffect(new BoostTargetEffect(-6,0, Duration.EndOfTurn)); + getRightHalfCard().getSpellAbility().addTarget(new TargetCreaturePermanent(true)); + + } + + public ProtectServe(final ProtectServe card) { + super(card); + } + + @Override + public ProtectServe copy() { + return new ProtectServe(this); + } +} diff --git a/Mage.Sets/src/mage/sets/magic2010/GloriousCharge.java b/Mage.Sets/src/mage/sets/magic2010/GloriousCharge.java index fc1a59b8b5..b67d302cda 100644 --- a/Mage.Sets/src/mage/sets/magic2010/GloriousCharge.java +++ b/Mage.Sets/src/mage/sets/magic2010/GloriousCharge.java @@ -46,6 +46,8 @@ public class GloriousCharge extends CardImpl { super(ownerId, 11, "Glorious Charge", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{1}{W}"); this.expansionSetCode = "M10"; this.color.setWhite(true); + + // Creatures you control get +1/+1 until end of turn. this.getSpellAbility().addEffect(new BoostControlledEffect(1, 1, Constants.Duration.EndOfTurn, new FilterCreaturePermanent(), false)); }