From fd1e72922172fecc37d7fbb6febbc097009f8bc2 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sun, 25 Nov 2012 20:16:16 +0100 Subject: [PATCH] 7 cards with additional block effects. --- .../sets/eighthedition/TwoHeadedDragon.java | 52 ++++++++++ .../sets/fallenempires/GoblinWarDrums1.java | 69 +++++++++++++ .../sets/fallenempires/GoblinWarDrums2.java | 52 ++++++++++ .../sets/fallenempires/GoblinWarDrums3.java | 52 ++++++++++ .../sets/fallenempires/GoblinWarDrums4.java | 52 ++++++++++ .../sets/fifthedition/GoblinWarDrums.java | 55 +++++++++++ .../sets/fifthedition/ImposingVisage.java | 52 ++++++++++ .../mage/sets/fifthedition/WindSpirit.java | 52 ++++++++++ .../src/mage/sets/guildpact/GruulNodorog.java | 97 +++++++++++++++++++ .../src/mage/sets/iceage/ImposingVisage.java | 76 +++++++++++++++ .../src/mage/sets/iceage/WindSpirit.java | 71 ++++++++++++++ .../mage/sets/lorwyn/CaterwaulingBoggart.java | 88 +++++++++++++++++ .../mercadianmasques/TwoHeadedDragon.java | 82 ++++++++++++++++ .../src/mage/sets/odyssey/AEtherBurst.java | 4 +- .../src/mage/sets/odyssey/Demoralize.java | 81 ++++++++++++++++ .../sets/seventhedition/GoblinWarDrums.java | 55 +++++++++++ .../mage/sets/sixthedition/WindSpirit.java | 52 ++++++++++ 17 files changed, 1040 insertions(+), 2 deletions(-) create mode 100644 Mage.Sets/src/mage/sets/eighthedition/TwoHeadedDragon.java create mode 100644 Mage.Sets/src/mage/sets/fallenempires/GoblinWarDrums1.java create mode 100644 Mage.Sets/src/mage/sets/fallenempires/GoblinWarDrums2.java create mode 100644 Mage.Sets/src/mage/sets/fallenempires/GoblinWarDrums3.java create mode 100644 Mage.Sets/src/mage/sets/fallenempires/GoblinWarDrums4.java create mode 100644 Mage.Sets/src/mage/sets/fifthedition/GoblinWarDrums.java create mode 100644 Mage.Sets/src/mage/sets/fifthedition/ImposingVisage.java create mode 100644 Mage.Sets/src/mage/sets/fifthedition/WindSpirit.java create mode 100644 Mage.Sets/src/mage/sets/guildpact/GruulNodorog.java create mode 100644 Mage.Sets/src/mage/sets/iceage/ImposingVisage.java create mode 100644 Mage.Sets/src/mage/sets/iceage/WindSpirit.java create mode 100644 Mage.Sets/src/mage/sets/lorwyn/CaterwaulingBoggart.java create mode 100644 Mage.Sets/src/mage/sets/mercadianmasques/TwoHeadedDragon.java create mode 100644 Mage.Sets/src/mage/sets/odyssey/Demoralize.java create mode 100644 Mage.Sets/src/mage/sets/seventhedition/GoblinWarDrums.java create mode 100644 Mage.Sets/src/mage/sets/sixthedition/WindSpirit.java diff --git a/Mage.Sets/src/mage/sets/eighthedition/TwoHeadedDragon.java b/Mage.Sets/src/mage/sets/eighthedition/TwoHeadedDragon.java new file mode 100644 index 00000000000..6c1f342a18d --- /dev/null +++ b/Mage.Sets/src/mage/sets/eighthedition/TwoHeadedDragon.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.eighthedition; + +import java.util.UUID; + +/** + * + * @author LevelX2 + */ +public class TwoHeadedDragon extends mage.sets.mercadianmasques.TwoHeadedDragon { + + public TwoHeadedDragon(UUID ownerId) { + super(ownerId); + this.cardNumber = 229; + this.expansionSetCode = "8ED"; + } + + public TwoHeadedDragon(final TwoHeadedDragon card) { + super(card); + } + + @Override + public TwoHeadedDragon copy() { + return new TwoHeadedDragon(this); + } +} diff --git a/Mage.Sets/src/mage/sets/fallenempires/GoblinWarDrums1.java b/Mage.Sets/src/mage/sets/fallenempires/GoblinWarDrums1.java new file mode 100644 index 00000000000..2bc017b0fe1 --- /dev/null +++ b/Mage.Sets/src/mage/sets/fallenempires/GoblinWarDrums1.java @@ -0,0 +1,69 @@ +/* + * 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.fallenempires; + +import java.util.UUID; +import mage.Constants; +import mage.Constants.CardType; +import mage.Constants.Rarity; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.common.continious.CantBeBlockedByOneEffect; +import mage.abilities.effects.common.continious.GainAbilityAllEffect; +import mage.cards.CardImpl; +import mage.filter.common.FilterControlledCreaturePermanent; + + + +/** + * + * @author LevelX2 + */ + public class GoblinWarDrums1 extends CardImpl { + + public GoblinWarDrums1(UUID ownerId) { + super(ownerId, 118, "Goblin War Drums", Rarity.COMMON, new CardType[]{CardType.ENCHANTMENT}, "{2}{R}"); + this.expansionSetCode = "FEM"; + + this.color.setRed(true); + + // Each creature you control can't be blocked except by two or more creatures. + this.addAbility(new SimpleStaticAbility(Constants.Zone.BATTLEFIELD, new GainAbilityAllEffect( + new SimpleStaticAbility(Constants.Zone.BATTLEFIELD, new CantBeBlockedByOneEffect(2)), + Constants.Duration.WhileOnBattlefield, new FilterControlledCreaturePermanent(), + "Each creature you control can't be blocked except by two or more creatures"))); + } + + public GoblinWarDrums1(final GoblinWarDrums1 card) { + super(card); + } + + @Override + public GoblinWarDrums1 copy() { + return new GoblinWarDrums1(this); + } +} diff --git a/Mage.Sets/src/mage/sets/fallenempires/GoblinWarDrums2.java b/Mage.Sets/src/mage/sets/fallenempires/GoblinWarDrums2.java new file mode 100644 index 00000000000..e1b58c836bb --- /dev/null +++ b/Mage.Sets/src/mage/sets/fallenempires/GoblinWarDrums2.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.fallenempires; + +import java.util.UUID; + +/** + * + * @author LevelX2 + */ +public class GoblinWarDrums2 extends mage.sets.fallenempires.GoblinWarDrums1 { + + public GoblinWarDrums2(UUID ownerId) { + super(ownerId); + this.cardNumber = 119; + } + + public GoblinWarDrums2(final GoblinWarDrums2 card) { + super(card); + } + + @Override + public GoblinWarDrums2 copy() { + return new GoblinWarDrums2(this); + } +} + diff --git a/Mage.Sets/src/mage/sets/fallenempires/GoblinWarDrums3.java b/Mage.Sets/src/mage/sets/fallenempires/GoblinWarDrums3.java new file mode 100644 index 00000000000..b0e3674afd0 --- /dev/null +++ b/Mage.Sets/src/mage/sets/fallenempires/GoblinWarDrums3.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.fallenempires; + +import java.util.UUID; + +/** + * + * @author LevelX2 + */ +public class GoblinWarDrums3 extends mage.sets.fallenempires.GoblinWarDrums1 { + + public GoblinWarDrums3(UUID ownerId) { + super(ownerId); + this.cardNumber = 120; + } + + public GoblinWarDrums3(final GoblinWarDrums3 card) { + super(card); + } + + @Override + public GoblinWarDrums3 copy() { + return new GoblinWarDrums3(this); + } +} + diff --git a/Mage.Sets/src/mage/sets/fallenempires/GoblinWarDrums4.java b/Mage.Sets/src/mage/sets/fallenempires/GoblinWarDrums4.java new file mode 100644 index 00000000000..9fb64ade12c --- /dev/null +++ b/Mage.Sets/src/mage/sets/fallenempires/GoblinWarDrums4.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.fallenempires; + +import java.util.UUID; + +/** + * + * @author LevelX2 + */ +public class GoblinWarDrums4 extends mage.sets.fallenempires.GoblinWarDrums1 { + + public GoblinWarDrums4(UUID ownerId) { + super(ownerId); + this.cardNumber = 121; + } + + public GoblinWarDrums4(final GoblinWarDrums4 card) { + super(card); + } + + @Override + public GoblinWarDrums4 copy() { + return new GoblinWarDrums4(this); + } +} + diff --git a/Mage.Sets/src/mage/sets/fifthedition/GoblinWarDrums.java b/Mage.Sets/src/mage/sets/fifthedition/GoblinWarDrums.java new file mode 100644 index 00000000000..4ac137707a6 --- /dev/null +++ b/Mage.Sets/src/mage/sets/fifthedition/GoblinWarDrums.java @@ -0,0 +1,55 @@ +/* + * 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 LevelX2 + */ +public class GoblinWarDrums extends mage.sets.fallenempires.GoblinWarDrums1 { + + public GoblinWarDrums(UUID ownerId) { + super(ownerId); + this.rarity = Rarity.COMMON; + this.cardNumber = 237; + this.expansionSetCode = "5ED"; + } + + public GoblinWarDrums(final GoblinWarDrums card) { + super(card); + } + + @Override + public GoblinWarDrums copy() { + return new GoblinWarDrums(this); + } +} + diff --git a/Mage.Sets/src/mage/sets/fifthedition/ImposingVisage.java b/Mage.Sets/src/mage/sets/fifthedition/ImposingVisage.java new file mode 100644 index 00000000000..486c1bd9fd1 --- /dev/null +++ b/Mage.Sets/src/mage/sets/fifthedition/ImposingVisage.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 North + */ +public class ImposingVisage extends mage.sets.iceage.ImposingVisage { + + public ImposingVisage(UUID ownerId) { + super(ownerId); + this.cardNumber = 241; + this.expansionSetCode = "5ED"; + } + + public ImposingVisage(final ImposingVisage card) { + super(card); + } + + @Override + public ImposingVisage copy() { + return new ImposingVisage(this); + } +} diff --git a/Mage.Sets/src/mage/sets/fifthedition/WindSpirit.java b/Mage.Sets/src/mage/sets/fifthedition/WindSpirit.java new file mode 100644 index 00000000000..2d1e15b7545 --- /dev/null +++ b/Mage.Sets/src/mage/sets/fifthedition/WindSpirit.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 LevelX2 + */ +public class WindSpirit extends mage.sets.iceage.WindSpirit { + + public WindSpirit(UUID ownerId) { + super(ownerId); + this.cardNumber = 136; + this.expansionSetCode = "5ED"; + } + + public WindSpirit(final WindSpirit card) { + super(card); + } + + @Override + public WindSpirit copy() { + return new WindSpirit(this); + } +} diff --git a/Mage.Sets/src/mage/sets/guildpact/GruulNodorog.java b/Mage.Sets/src/mage/sets/guildpact/GruulNodorog.java new file mode 100644 index 00000000000..f55ac111f8a --- /dev/null +++ b/Mage.Sets/src/mage/sets/guildpact/GruulNodorog.java @@ -0,0 +1,97 @@ +/* + * 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.guildpact; + +import java.util.UUID; +import mage.Constants; +import mage.Constants.CardType; +import mage.Constants.Rarity; +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.OneShotEffect; +import mage.abilities.effects.common.continious.CantBeBlockedByOneEffect; +import mage.cards.CardImpl; +import mage.game.Game; + +/** + * + * @author LevelX2 + */ +public class GruulNodorog extends CardImpl { + + public GruulNodorog(UUID ownerId) { + super(ownerId, 88, "Gruul Nodorog", Rarity.COMMON, new CardType[]{CardType.CREATURE}, "{4}{G}{G}"); + this.expansionSetCode = "GPT"; + this.subtype.add("Beast"); + this.color.setGreen(true); + this.power = new MageInt(4); + this.toughness = new MageInt(4); + + //{R}: Gruul Nodorog can't be blocked this turn except by two or more creatures. + this.addAbility(new SimpleActivatedAbility(Constants.Zone.BATTLEFIELD, new CantBeBlockedByOneEffect(2, Constants.Duration.EndOfTurn), new ManaCostsImpl("{R}"))); + } + + public GruulNodorog(final GruulNodorog card) { + super(card); + } + + @Override + public GruulNodorog copy() { + return new GruulNodorog(this); + } +} + +class GruulNodorogEffect extends OneShotEffect { + public GruulNodorogEffect() { + super(Constants.Outcome.Damage); + staticText = "each opponent loses 1 life. You gain life equal to the life lost this way"; + } + + public GruulNodorogEffect(final GruulNodorogEffect effect) { + super(effect); + } + + @Override + public boolean apply(Game game, Ability source) { + int loseLife = 0; + for (UUID opponentId : game.getOpponents(source.getControllerId())) { + loseLife += game.getPlayer(opponentId).loseLife(1, game); + } + if (loseLife > 0) + game.getPlayer(source.getControllerId()).gainLife(loseLife, game); + return true; + } + + @Override + public GruulNodorogEffect copy() { + return new GruulNodorogEffect(this); + } + +} \ No newline at end of file diff --git a/Mage.Sets/src/mage/sets/iceage/ImposingVisage.java b/Mage.Sets/src/mage/sets/iceage/ImposingVisage.java new file mode 100644 index 00000000000..77b297588c6 --- /dev/null +++ b/Mage.Sets/src/mage/sets/iceage/ImposingVisage.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.iceage; + +import java.util.UUID; +import mage.Constants.AttachmentType; +import mage.Constants.CardType; +import mage.Constants.Outcome; +import mage.Constants.Rarity; +import mage.Constants.Zone; +import mage.abilities.Ability; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.common.AttachEffect; +import mage.abilities.effects.common.continious.CantBeBlockedByOneAttachedEffect; +import mage.abilities.keyword.EnchantAbility; +import mage.cards.CardImpl; +import mage.target.TargetPermanent; +import mage.target.common.TargetCreaturePermanent; + +/** + * + * @author LevelX2 + */ +public class ImposingVisage extends CardImpl { + + public ImposingVisage(UUID ownerId) { + super(ownerId, 193, "Imposing Visage", Rarity.COMMON, new CardType[]{CardType.ENCHANTMENT}, "{R}"); + this.expansionSetCode = "ICE"; + this.subtype.add("Aura"); + this.color.setRed(true); + + // Enchant creature + TargetPermanent auraTarget = new TargetCreaturePermanent(); + this.getSpellAbility().addTarget(auraTarget); + this.getSpellAbility().addEffect(new AttachEffect(Outcome.AddAbility)); + Ability ability = new EnchantAbility(auraTarget.getTargetName()); + this.addAbility(ability); + + // Enchanted creature can't be blocked except by two or more creatures. + this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBeBlockedByOneAttachedEffect(AttachmentType.AURA, 2))); + } + + public ImposingVisage(final ImposingVisage card) { + super(card); + } + + @Override + public ImposingVisage copy() { + return new ImposingVisage(this); + } +} diff --git a/Mage.Sets/src/mage/sets/iceage/WindSpirit.java b/Mage.Sets/src/mage/sets/iceage/WindSpirit.java new file mode 100644 index 00000000000..04a2c01153b --- /dev/null +++ b/Mage.Sets/src/mage/sets/iceage/WindSpirit.java @@ -0,0 +1,71 @@ +/* + * 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; +import mage.Constants; +import mage.Constants.CardType; +import mage.Constants.Rarity; +import mage.MageInt; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.common.continious.CantBeBlockedByOneEffect; +import mage.abilities.keyword.FlyingAbility; +import mage.cards.CardImpl; + +/** + * + * @author LevelX2 + */ +public class WindSpirit extends CardImpl { + + public WindSpirit(UUID ownerId) { + super(ownerId, 106, "Wind Spirit", Rarity.UNCOMMON, new CardType[]{CardType.CREATURE}, "{4}{U}"); + this.expansionSetCode = "ICE"; + this.subtype.add("Elemental"); + this.subtype.add("Spirit"); + + this.color.setBlue(true); + this.power = new MageInt(3); + this.toughness = new MageInt(2); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // Wind Spirit can't be blocked except by two or more creatures. + this.addAbility(new SimpleStaticAbility(Constants.Zone.BATTLEFIELD, new CantBeBlockedByOneEffect(2))); + } + + public WindSpirit(final WindSpirit card) { + super(card); + } + + @Override + public WindSpirit copy() { + return new WindSpirit(this); + } +} diff --git a/Mage.Sets/src/mage/sets/lorwyn/CaterwaulingBoggart.java b/Mage.Sets/src/mage/sets/lorwyn/CaterwaulingBoggart.java new file mode 100644 index 00000000000..10348e9b37f --- /dev/null +++ b/Mage.Sets/src/mage/sets/lorwyn/CaterwaulingBoggart.java @@ -0,0 +1,88 @@ +/* + * 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.lorwyn; + +import java.util.UUID; +import mage.Constants; +import mage.Constants.CardType; +import mage.Constants.Duration; +import mage.Constants.Rarity; +import mage.MageInt; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.common.continious.CantBeBlockedByOneEffect; +import mage.abilities.effects.common.continious.GainAbilityAllEffect; +import mage.cards.CardImpl; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterControlledCreaturePermanent; +import mage.filter.predicate.mageobject.SubtypePredicate; + +/** + * + * @author LevelX2 + */ +public class CaterwaulingBoggart extends CardImpl { + + private final static FilterPermanent filterGoblin = new FilterControlledCreaturePermanent("Goblin"); + private final static FilterPermanent filterElemental = new FilterControlledCreaturePermanent("Elemental"); + + static { + filterGoblin.add(new SubtypePredicate("Goblin")); + filterElemental.add(new SubtypePredicate("Elemental")); + } + + public CaterwaulingBoggart(UUID ownerId) { + super(ownerId, 157, "Caterwauling Boggart", Rarity.COMMON, new CardType[]{CardType.CREATURE}, "{3}{R}"); + this.expansionSetCode = "LRW"; + this.subtype.add("Goblin"); + this.subtype.add("Shaman"); + this.color.setRed(true); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // Each Goblin you control can't be blocked except by two or more creatures. + this.addAbility(new SimpleStaticAbility(Constants.Zone.BATTLEFIELD, new GainAbilityAllEffect( + new SimpleStaticAbility(Constants.Zone.BATTLEFIELD, new CantBeBlockedByOneEffect(2)), + Duration.WhileOnBattlefield, filterGoblin, + "Each Goblin you control can't be blocked except by two or more creatures"))); + + // Each Elemental you control can't be blocked except by two or more creatures. + this.addAbility(new SimpleStaticAbility(Constants.Zone.BATTLEFIELD, new GainAbilityAllEffect( + new SimpleStaticAbility(Constants.Zone.BATTLEFIELD, new CantBeBlockedByOneEffect(2)), + Duration.WhileOnBattlefield, filterGoblin, + "Each Elemental you control can't be blocked except by two or more creatures"))); + } + + public CaterwaulingBoggart(final CaterwaulingBoggart card) { + super(card); + } + + @Override + public CaterwaulingBoggart copy() { + return new CaterwaulingBoggart(this); + } +} diff --git a/Mage.Sets/src/mage/sets/mercadianmasques/TwoHeadedDragon.java b/Mage.Sets/src/mage/sets/mercadianmasques/TwoHeadedDragon.java new file mode 100644 index 00000000000..df23d9cfa89 --- /dev/null +++ b/Mage.Sets/src/mage/sets/mercadianmasques/TwoHeadedDragon.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.mercadianmasques; + +import java.util.UUID; +import mage.Constants.CardType; +import mage.Constants.Duration; +import mage.Constants.Rarity; +import mage.Constants.Zone; +import mage.MageInt; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.continious.BoostSourceEffect; +import mage.abilities.effects.common.continious.CanBlockAdditionalCreatureEffect; +import mage.abilities.effects.common.continious.CantBeBlockedByOneEffect; +import mage.abilities.keyword.FlyingAbility; +import mage.cards.CardImpl; + +/** + * + * @author LevelX2 + */ +public class TwoHeadedDragon extends CardImpl { + + public TwoHeadedDragon(UUID ownerId) { + super(ownerId, 221, "Two-Headed Dragon", Rarity.RARE, new CardType[]{CardType.CREATURE}, "{4}{R}{R}"); + this.expansionSetCode = "MMQ"; + this.subtype.add("Dragon"); + + this.color.setRed(true); + this.power = new MageInt(4); + this.toughness = new MageInt(4); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // {1}{R}: Two-Headed Dragon gets +2/+0 until end of turn. + this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2,0, Duration.EndOfTurn),new ManaCostsImpl("{1}{R}"))); + + // Two-Headed Dragon can't be blocked except by two or more creatures. + this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBeBlockedByOneEffect(2))); + + // Two-Headed Dragon can block an additional creature. + this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CanBlockAdditionalCreatureEffect())); + + } + + public TwoHeadedDragon(final TwoHeadedDragon card) { + super(card); + } + + @Override + public TwoHeadedDragon copy() { + return new TwoHeadedDragon(this); + } +} diff --git a/Mage.Sets/src/mage/sets/odyssey/AEtherBurst.java b/Mage.Sets/src/mage/sets/odyssey/AEtherBurst.java index 4b8947fb0cd..7a15053f5e1 100644 --- a/Mage.Sets/src/mage/sets/odyssey/AEtherBurst.java +++ b/Mage.Sets/src/mage/sets/odyssey/AEtherBurst.java @@ -49,7 +49,7 @@ import java.util.UUID; */ public class AEtherBurst extends CardImpl { - private static FilterCard filter = new FilterCard("cards named AEther Burst"); + private static final FilterCard filter = new FilterCard("cards named AEther Burst"); static { filter.add(new NamePredicate("AEther Burst")); @@ -96,7 +96,7 @@ public class AEtherBurst extends CardImpl { class DynamicTargetCreaturePermanent> extends TargetCreaturePermanent> { - private static FilterCreaturePermanent filterCreature = new FilterCreaturePermanent("creatures"); + private static final FilterCreaturePermanent filterCreature = new FilterCreaturePermanent("creatures"); public DynamicTargetCreaturePermanent() { super(new TargetCreaturePermanent(filterCreature)); diff --git a/Mage.Sets/src/mage/sets/odyssey/Demoralize.java b/Mage.Sets/src/mage/sets/odyssey/Demoralize.java new file mode 100644 index 00000000000..625b410cceb --- /dev/null +++ b/Mage.Sets/src/mage/sets/odyssey/Demoralize.java @@ -0,0 +1,81 @@ +/* + * 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.odyssey; + +import java.util.UUID; +import mage.Constants; +import mage.Constants.CardType; +import mage.Constants.Outcome; +import mage.Constants.Rarity; +import mage.abilities.Ability; +import mage.abilities.condition.common.CardsInControllerGraveCondition; +import mage.abilities.decorator.ConditionalContinousEffect; +import mage.abilities.decorator.ConditionalOneShotEffect; +import mage.abilities.effects.OneShotEffect; +import mage.abilities.effects.common.AddContinuousEffectToGame; +import mage.abilities.effects.common.CantBlockAllEffect; +import mage.abilities.effects.common.continious.CantBeBlockedByOneAllEffect; +import mage.cards.CardImpl; +import mage.filter.common.FilterCreaturePermanent; +import mage.game.Game; + + +/** + * + * @author LevelX2 + */ +public class Demoralize extends CardImpl { + + public Demoralize(UUID ownerId) { + super(ownerId, 184, "Demoralize", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{2}{R}"); + this.expansionSetCode = "ODY"; + + this.color.setRed(true); + + // Each creature can't be blocked this turn except by two or more creatures. + this.getSpellAbility().addEffect(new CantBeBlockedByOneAllEffect(2, new FilterCreaturePermanent(), Constants.Duration.EndOfTurn)); + + // Threshold — If seven or more cards are in your graveyard, creatures can't block this turn. + this.getSpellAbility().addEffect( + new ConditionalOneShotEffect( + new AddContinuousEffectToGame(new CantBlockAllEffect(new FilterCreaturePermanent(), Constants.Duration.EndOfTurn)), + new CardsInControllerGraveCondition(7), + "

Threshold - If seven or more cards are in your graveyard, creatures can't block this turn" + )); + } + + + public Demoralize(final Demoralize card) { + super(card); + } + + @Override + public Demoralize copy() { + return new Demoralize(this); + } +} \ No newline at end of file diff --git a/Mage.Sets/src/mage/sets/seventhedition/GoblinWarDrums.java b/Mage.Sets/src/mage/sets/seventhedition/GoblinWarDrums.java new file mode 100644 index 00000000000..cb44d41ee9d --- /dev/null +++ b/Mage.Sets/src/mage/sets/seventhedition/GoblinWarDrums.java @@ -0,0 +1,55 @@ +/* + * 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; +import mage.Constants.Rarity; + +/** + * + * @author LevelX2 + */ +public class GoblinWarDrums extends mage.sets.fallenempires.GoblinWarDrums1 { + + public GoblinWarDrums(UUID ownerId) { + super(ownerId); + this.rarity = Rarity.UNCOMMON; + this.cardNumber = 194; + this.expansionSetCode = "7ED"; + } + + public GoblinWarDrums(final GoblinWarDrums card) { + super(card); + } + + @Override + public GoblinWarDrums copy() { + return new GoblinWarDrums(this); + } +} + diff --git a/Mage.Sets/src/mage/sets/sixthedition/WindSpirit.java b/Mage.Sets/src/mage/sets/sixthedition/WindSpirit.java new file mode 100644 index 00000000000..9381beefc2b --- /dev/null +++ b/Mage.Sets/src/mage/sets/sixthedition/WindSpirit.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 LevelX2 + */ +public class WindSpirit extends mage.sets.iceage.WindSpirit { + + public WindSpirit(UUID ownerId) { + super(ownerId); + this.cardNumber = 107; + this.expansionSetCode = "6ED"; + } + + public WindSpirit(final WindSpirit card) { + super(card); + } + + @Override + public WindSpirit copy() { + return new WindSpirit(this); + } +}