From 3a0d0e937427af8d412d3eb14667c8bc2b5c968d Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sun, 10 Nov 2013 15:03:16 +0100 Subject: [PATCH] Added Dirge of Dreadm , Foster, Night Soil, Vile Requiem, Spoils of the Vault, Dirge of Dread, Isleback Spawn, Deep Sea Kraken. --- .../mage/sets/commander2013/DirgeOfDread.java | 52 +++++++ .../src/mage/sets/commander2013/Foster.java | 130 ++++++++++++++++ .../mage/sets/commander2013/NightSoil.java | 52 +++++++ .../mage/sets/commander2013/VileRequiem.java | 52 +++++++ .../mage/sets/fallenempires/NightSoil.java | 70 +++++++++ .../mage/sets/mercadianmasques/Foster.java | 52 +++++++ .../mage/sets/mirrodin/SpoilsOfTheVault.java | 2 +- .../src/mage/sets/onslaught/DirgeOfDread.java | 75 ++++++++++ .../mage/sets/shadowmoor/IslebackSpawn.java | 139 ++++++++++++++++++ .../mage/sets/timespiral/DeepSeaKraken.java | 85 +++++++++++ .../src/mage/sets/urzassaga/VileRequiem.java | 108 ++++++++++++++ .../costs/common/ExileFromGraveCost.java | 15 +- Mage/src/mage/counters/CounterType.java | 61 ++++---- .../src/mage/counters/common/VileCounter.java | 49 ++++++ 14 files changed, 907 insertions(+), 35 deletions(-) create mode 100644 Mage.Sets/src/mage/sets/commander2013/DirgeOfDread.java create mode 100644 Mage.Sets/src/mage/sets/commander2013/Foster.java create mode 100644 Mage.Sets/src/mage/sets/commander2013/NightSoil.java create mode 100644 Mage.Sets/src/mage/sets/commander2013/VileRequiem.java create mode 100644 Mage.Sets/src/mage/sets/fallenempires/NightSoil.java create mode 100644 Mage.Sets/src/mage/sets/mercadianmasques/Foster.java create mode 100644 Mage.Sets/src/mage/sets/onslaught/DirgeOfDread.java create mode 100644 Mage.Sets/src/mage/sets/shadowmoor/IslebackSpawn.java create mode 100644 Mage.Sets/src/mage/sets/timespiral/DeepSeaKraken.java create mode 100644 Mage.Sets/src/mage/sets/urzassaga/VileRequiem.java create mode 100644 Mage/src/mage/counters/common/VileCounter.java diff --git a/Mage.Sets/src/mage/sets/commander2013/DirgeOfDread.java b/Mage.Sets/src/mage/sets/commander2013/DirgeOfDread.java new file mode 100644 index 00000000000..75e60c6225d --- /dev/null +++ b/Mage.Sets/src/mage/sets/commander2013/DirgeOfDread.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.commander2013; + +import java.util.UUID; + +/** + * + * @author LevelX2 + */ +public class DirgeOfDread extends mage.sets.onslaught.DirgeOfDread { + + public DirgeOfDread(UUID ownerId) { + super(ownerId); + this.cardNumber = 73; + this.expansionSetCode = "C13"; + } + + public DirgeOfDread(final DirgeOfDread card) { + super(card); + } + + @Override + public DirgeOfDread copy() { + return new DirgeOfDread(this); + } +} diff --git a/Mage.Sets/src/mage/sets/commander2013/Foster.java b/Mage.Sets/src/mage/sets/commander2013/Foster.java new file mode 100644 index 00000000000..202a06c9e4e --- /dev/null +++ b/Mage.Sets/src/mage/sets/commander2013/Foster.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.commander2013; + +import java.util.UUID; +import mage.abilities.Ability; +import mage.abilities.common.DiesCreatureTriggeredAbility; +import mage.abilities.costs.mana.GenericManaCost; +import mage.abilities.effects.OneShotEffect; +import mage.abilities.effects.common.DoIfCostPaid; +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.TargetController; +import mage.constants.Zone; +import mage.filter.common.FilterCreatureCard; +import mage.filter.common.FilterCreaturePermanent; +import mage.filter.predicate.permanent.ControllerPredicate; +import mage.game.Game; +import mage.players.Player; + +/** + * + * @author LevelX2 + */ +public class Foster extends CardImpl { + + private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("a creature you control"); + static { + filter.add(new ControllerPredicate(TargetController.YOU)); + } + + public Foster(UUID ownerId) { + super(ownerId, 146, "Foster", Rarity.RARE, new CardType[]{CardType.ENCHANTMENT}, "{2}{G}{G}"); + this.expansionSetCode = "C13"; + + this.color.setGreen(true); + + // Whenever a creature you control dies, you may pay {1}. If you do, reveal cards from the top of your library until you reveal a creature card. Put that card into your hand and the rest into your graveyard. + Ability ability = new DiesCreatureTriggeredAbility( + new DoIfCostPaid(new FosterEffect(), new GenericManaCost(1)), + false, filter); + this.addAbility(ability); + } + + public Foster(final Foster card) { + super(card); + } + + @Override + public Foster copy() { + return new Foster(this); + } +} + +class FosterEffect extends OneShotEffect { + + private static final FilterCreatureCard filter = new FilterCreatureCard(); + + public FosterEffect() { + super(Outcome.ReturnToHand); + this.staticText = "reveal cards from the top of your library until you reveal a creature card. Put that card into your hand and the rest into your graveyard"; + } + + public FosterEffect(final FosterEffect effect) { + super(effect); + } + + @Override + public FosterEffect copy() { + return new FosterEffect(this); + } + + @Override + public boolean apply(Game game, Ability source) { + Player controller = game.getPlayer(source.getControllerId()); + if (controller == null) { + return false; + } + Card sourceCard = game.getCard(source.getSourceId()); + if (sourceCard == null) { + return false; + } + Cards cards = new CardsImpl(Zone.PICK); + while (controller.getLibrary().size() > 0) { + Card card = controller.getLibrary().getFromTop(game); + if (card != null) { + cards.add(card); + if(filter.match(card, game)){ + card.moveToZone(Zone.HAND, source.getSourceId(), game, false); + break; + } + else{ + card.moveToZone(Zone.GRAVEYARD, source.getSourceId(), game, false); + } + } + } + controller.revealCards(sourceCard.getName(), cards, game); + return true; + } +} diff --git a/Mage.Sets/src/mage/sets/commander2013/NightSoil.java b/Mage.Sets/src/mage/sets/commander2013/NightSoil.java new file mode 100644 index 00000000000..b7e0c197361 --- /dev/null +++ b/Mage.Sets/src/mage/sets/commander2013/NightSoil.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.commander2013; + +import java.util.UUID; + +/** + * + * @author LevelX2 + */ +public class NightSoil extends mage.sets.fallenempires.NightSoil { + + public NightSoil(UUID ownerId) { + super(ownerId); + this.cardNumber = 158; + this.expansionSetCode = "C13"; + } + + public NightSoil(final NightSoil card) { + super(card); + } + + @Override + public NightSoil copy() { + return new NightSoil(this); + } +} diff --git a/Mage.Sets/src/mage/sets/commander2013/VileRequiem.java b/Mage.Sets/src/mage/sets/commander2013/VileRequiem.java new file mode 100644 index 00000000000..18f9e643526 --- /dev/null +++ b/Mage.Sets/src/mage/sets/commander2013/VileRequiem.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.commander2013; + +import java.util.UUID; + +/** + * + * @author LevelX2 + */ +public class VileRequiem extends mage.sets.urzassaga.VileRequiem { + + public VileRequiem(UUID ownerId) { + super(ownerId); + this.cardNumber = 98; + this.expansionSetCode = "C13"; + } + + public VileRequiem(final VileRequiem card) { + super(card); + } + + @Override + public VileRequiem copy() { + return new VileRequiem(this); + } +} diff --git a/Mage.Sets/src/mage/sets/fallenempires/NightSoil.java b/Mage.Sets/src/mage/sets/fallenempires/NightSoil.java new file mode 100644 index 00000000000..121ebc13610 --- /dev/null +++ b/Mage.Sets/src/mage/sets/fallenempires/NightSoil.java @@ -0,0 +1,70 @@ +/* + * 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.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.ExileFromGraveCost; +import mage.abilities.costs.mana.GenericManaCost; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.Rarity; +import mage.constants.Zone; +import mage.filter.common.FilterCreatureCard; +import mage.game.permanent.token.SaprolingToken; +import mage.target.common.TargetCardInASingleGraveyard; + +/** + * + * @author LevelX2 + */ +public class NightSoil extends CardImpl { + + public NightSoil(UUID ownerId) { + super(ownerId, 80, "Night Soil", Rarity.COMMON, new CardType[]{CardType.ENCHANTMENT}, "{G}{G}"); + this.expansionSetCode = "FEM"; + + this.color.setGreen(true); + + // {1}, Exile two creature cards from a single graveyard: Put a 1/1 green Saproling creature token onto the battlefield. + Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new SaprolingToken()), new GenericManaCost(1)); + ability.addCost(new ExileFromGraveCost(new TargetCardInASingleGraveyard(2,2, new FilterCreatureCard("two creature cards from a single graveyard")))); + this.addAbility(ability); + } + + public NightSoil(final NightSoil card) { + super(card); + } + + @Override + public NightSoil copy() { + return new NightSoil(this); + } +} diff --git a/Mage.Sets/src/mage/sets/mercadianmasques/Foster.java b/Mage.Sets/src/mage/sets/mercadianmasques/Foster.java new file mode 100644 index 00000000000..4ef5540102c --- /dev/null +++ b/Mage.Sets/src/mage/sets/mercadianmasques/Foster.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.mercadianmasques; + +import java.util.UUID; + +/** + * + * @author LevelX2 + */ +public class Foster extends mage.sets.commander2013.Foster { + + public Foster(UUID ownerId) { + super(ownerId); + this.cardNumber = 247; + this.expansionSetCode = "MMQ"; + } + + public Foster(final Foster card) { + super(card); + } + + @Override + public Foster copy() { + return new Foster(this); + } +} diff --git a/Mage.Sets/src/mage/sets/mirrodin/SpoilsOfTheVault.java b/Mage.Sets/src/mage/sets/mirrodin/SpoilsOfTheVault.java index 38721b1455b..377f5296594 100644 --- a/Mage.Sets/src/mage/sets/mirrodin/SpoilsOfTheVault.java +++ b/Mage.Sets/src/mage/sets/mirrodin/SpoilsOfTheVault.java @@ -119,7 +119,7 @@ class SpoilsOfTheVaultEffect extends OneShotEffect { if (card != null) { cards.add(card); if(card.getName().equals(cardName)){ - card.moveToZone(Zone.HAND, source.getId(), game, false); + card.moveToZone(Zone.HAND, source.getSourceId(), game, false); break; } else{ diff --git a/Mage.Sets/src/mage/sets/onslaught/DirgeOfDread.java b/Mage.Sets/src/mage/sets/onslaught/DirgeOfDread.java new file mode 100644 index 00000000000..c9337729149 --- /dev/null +++ b/Mage.Sets/src/mage/sets/onslaught/DirgeOfDread.java @@ -0,0 +1,75 @@ +/* + * 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.onslaught; + +import java.util.UUID; +import mage.abilities.Ability; +import mage.abilities.common.CycleTriggeredAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.continious.GainAbilityAllEffect; +import mage.abilities.effects.common.continious.GainAbilityTargetEffect; +import mage.abilities.keyword.CyclingAbility; +import mage.abilities.keyword.FearAbility; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.Rarity; +import mage.filter.common.FilterCreaturePermanent; +import mage.target.common.TargetCreaturePermanent; + +/** + * + * @author LevelX2 + */ +public class DirgeOfDread extends CardImpl { + + public DirgeOfDread(UUID ownerId) { + super(ownerId, 138, "Dirge of Dread", Rarity.COMMON, new CardType[]{CardType.SORCERY}, "{2}{B}"); + this.expansionSetCode = "ONS"; + + this.color.setBlack(true); + + // All creatures gain fear until end of turn. + this.getSpellAbility().addEffect(new GainAbilityAllEffect(FearAbility.getInstance(), Duration.EndOfTurn, new FilterCreaturePermanent("All creatures"))); + // Cycling {1}{B} + this.addAbility(new CyclingAbility(new ManaCostsImpl("{1}{B}"))); + // When you cycle Dirge of Dread, you may have target creature gain fear until end of turn. + Ability ability = new CycleTriggeredAbility(new GainAbilityTargetEffect(FearAbility.getInstance(), Duration.EndOfTurn), true); + ability.addTarget(new TargetCreaturePermanent(true)); + this.addAbility(ability); + } + + public DirgeOfDread(final DirgeOfDread card) { + super(card); + } + + @Override + public DirgeOfDread copy() { + return new DirgeOfDread(this); + } +} diff --git a/Mage.Sets/src/mage/sets/shadowmoor/IslebackSpawn.java b/Mage.Sets/src/mage/sets/shadowmoor/IslebackSpawn.java new file mode 100644 index 00000000000..5837b3f5e3f --- /dev/null +++ b/Mage.Sets/src/mage/sets/shadowmoor/IslebackSpawn.java @@ -0,0 +1,139 @@ +/* + * 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.shadowmoor; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.condition.Condition; +import static mage.abilities.condition.Condition.ComparisonType.Equal; +import static mage.abilities.condition.Condition.ComparisonType.GreaterThan; +import static mage.abilities.condition.Condition.ComparisonType.LessThan; +import mage.abilities.decorator.ConditionalContinousEffect; +import mage.abilities.effects.common.continious.BoostSourceEffect; +import mage.abilities.keyword.ShroudAbility; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.Rarity; +import mage.constants.Zone; +import mage.game.Game; +import mage.players.Player; + +/** + * + * @author LevelX2 + */ +public class IslebackSpawn extends CardImpl { + + public IslebackSpawn(UUID ownerId) { + super(ownerId, 40, "Isleback Spawn", Rarity.RARE, new CardType[]{CardType.CREATURE}, "{5}{U}{U}"); + this.expansionSetCode = "SHM"; + this.subtype.add("Kraken"); + + this.color.setBlue(true); + this.power = new MageInt(4); + this.toughness = new MageInt(8); + + // Shroud + this.addAbility(ShroudAbility.getInstance()); + // Isleback Spawn gets +4/+8 as long as a library has twenty or fewer cards in it. + this.addAbility(new SimpleStaticAbility(Zone.ALL, new ConditionalContinousEffect( + new BoostSourceEffect(4,8, Duration.EndOfGame), + new CardsInAnyLibraryCondition(Condition.ComparisonType.LessThan, 21), + "{this} gets +4/+8 as long as a library has twenty or fewer cards in it"))); + } + + public IslebackSpawn(final IslebackSpawn card) { + super(card); + } + + @Override + public IslebackSpawn copy() { + return new IslebackSpawn(this); + } +} + +class CardsInAnyLibraryCondition implements Condition { + + protected final Condition.ComparisonType type; + protected final int value; + + public CardsInAnyLibraryCondition(Condition.ComparisonType type, int value) { + this.type = type; + this.value = value; + } + + @Override + public final boolean apply(Game game, Ability source) { + Player controller = game.getPlayer(source.getControllerId()); + if (controller != null) { + for (UUID playerId: controller.getInRange()) { + Player player = game.getPlayer(playerId); + if (player != null) { + switch(type) { + case GreaterThan: + if (player.getLibrary().size() > value) { + return true; + } + break; + case Equal: + if (player.getLibrary().size() == value) { + return true; + } + break; + case LessThan: + if (player.getLibrary().size() < value) { + return true; + } + break; + } + } + } + } + return false; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("a library has "); + switch(type) { + case GreaterThan: + sb.append(value+1).append(" or more cards in it "); + break; + case Equal: + sb.append(value).append(" cards in it "); + break; + case LessThan: + sb.append(value-1).append(" or fewer cards in it "); + break; + } + return sb.toString(); + } +} diff --git a/Mage.Sets/src/mage/sets/timespiral/DeepSeaKraken.java b/Mage.Sets/src/mage/sets/timespiral/DeepSeaKraken.java new file mode 100644 index 00000000000..afda420c618 --- /dev/null +++ b/Mage.Sets/src/mage/sets/timespiral/DeepSeaKraken.java @@ -0,0 +1,85 @@ +/* + * 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.timespiral; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.common.SpellCastAllTriggeredAbility; +import mage.abilities.condition.common.SuspendedCondition; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.decorator.ConditionalTriggeredAbility; +import mage.abilities.effects.common.counter.RemoveCounterSourceEffect; +import mage.abilities.keyword.SuspendAbility; +import mage.abilities.keyword.UnblockableAbility; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.Rarity; +import mage.constants.TargetController; +import mage.counters.common.TimeCounter; +import mage.filter.FilterSpell; +import mage.filter.predicate.permanent.ControllerPredicate; + +/** + * + * @author LevelX2 + */ +public class DeepSeaKraken extends CardImpl { + + private static final FilterSpell filter = new FilterSpell("an opponent casts"); + static { + filter.add(new ControllerPredicate(TargetController.OPPONENT)); + } + + public DeepSeaKraken(UUID ownerId) { + super(ownerId, 56, "Deep-Sea Kraken", Rarity.RARE, new CardType[]{CardType.CREATURE}, "{7}{U}{U}{U}"); + this.expansionSetCode = "TSP"; + this.subtype.add("Kraken"); + + this.color.setBlue(true); + this.power = new MageInt(6); + this.toughness = new MageInt(6); + + // Deep-Sea Kraken is unblockable. + this.addAbility(new UnblockableAbility()); + // Suspend 9-{2}{U} + this.addAbility(new SuspendAbility(9, new ManaCostsImpl("{2}{U}"), this)); + // Whenever an opponent casts a spell, if Deep-Sea Kraken is suspended, remove a time counter from it. + this.addAbility(new ConditionalTriggeredAbility( + new SpellCastAllTriggeredAbility(new RemoveCounterSourceEffect(new TimeCounter(1)), filter, false), SuspendedCondition.getInstance(), + "Whenever an opponent casts a spell, if Deep-Sea Kraken is suspended, remove a time counter from it.", false)); + } + + public DeepSeaKraken(final DeepSeaKraken card) { + super(card); + } + + @Override + public DeepSeaKraken copy() { + return new DeepSeaKraken(this); + } +} diff --git a/Mage.Sets/src/mage/sets/urzassaga/VileRequiem.java b/Mage.Sets/src/mage/sets/urzassaga/VileRequiem.java new file mode 100644 index 00000000000..c4d75959a20 --- /dev/null +++ b/Mage.Sets/src/mage/sets/urzassaga/VileRequiem.java @@ -0,0 +1,108 @@ +/* + * 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; +import mage.ObjectColor; +import mage.abilities.Ability; +import mage.abilities.common.BeginningOfUpkeepTriggeredAbility; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.SacrificeSourceCost; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.Effect; +import mage.abilities.effects.common.DestroyTargetEffect; +import mage.abilities.effects.common.counter.AddCountersSourceEffect; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.Rarity; +import mage.constants.TargetController; +import mage.constants.Zone; +import mage.counters.CounterType; +import mage.filter.common.FilterCreaturePermanent; +import mage.filter.predicate.Predicates; +import mage.filter.predicate.mageobject.ColorPredicate; +import mage.game.Game; +import mage.game.permanent.Permanent; +import mage.target.common.TargetCreaturePermanent; +import mage.util.CardUtil; + +/** + * + * @author LevelX2 + */ +public class VileRequiem extends CardImpl { + + private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("up to X target nonblack creatures, where X is the number of verse counters on {this}"); + static { + filter.add(Predicates.not(new ColorPredicate(ObjectColor.BLACK))); + } + private UUID originalId; + + public VileRequiem(UUID ownerId) { + super(ownerId, 167, "Vile Requiem", Rarity.UNCOMMON, new CardType[]{CardType.ENCHANTMENT}, "{2}{B}{B}"); + this.expansionSetCode = "USG"; + + this.color.setBlack(true); + + // At the beginning of your upkeep, you may put a verse counter on Vile Requiem. + this.addAbility(new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, + new AddCountersSourceEffect(CounterType.VILE.createInstance(), true ), TargetController.YOU, true)); + // {1}{B}, Sacrifice Vile Requiem: Destroy up to X target nonblack creatures, where X is the number of verse counters on Vile Requiem. They can't be regenerated. + Effect effect = new DestroyTargetEffect(true); + effect.setText("Destroy up to X target nonblack creatures, where X is the number of verse counters on {this}. They can't be regenerated"); + Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{1}{B}")); + originalId = ability.getOriginalId(); + ability.addCost(new SacrificeSourceCost()); + ability.addTarget(new TargetCreaturePermanent(0,0,filter, false)); + this.addAbility(ability); + + } + + @Override + public void adjustTargets(Ability ability, Game game) { + if (ability.getOriginalId().equals(originalId)) { + Permanent sourcePermanent = game.getPermanent(ability.getSourceId()); + if (sourcePermanent != null) { + int numberCounters = sourcePermanent.getCounters().getCount(CounterType.VILE); + ability.getTargets().clear(); + FilterCreaturePermanent newFilter = filter.copy(); + newFilter.setMessage(new StringBuilder("up to ").append(CardUtil.numberToText(numberCounters)).append(" target nonblack creatures").toString()); + ability.addTarget(new TargetCreaturePermanent(0,numberCounters,newFilter, false)); + } + } + } + + public VileRequiem(final VileRequiem card) { + super(card); + } + + @Override + public VileRequiem copy() { + return new VileRequiem(this); + } +} diff --git a/Mage/src/mage/abilities/costs/common/ExileFromGraveCost.java b/Mage/src/mage/abilities/costs/common/ExileFromGraveCost.java index b877e972408..4916a2c1bbf 100644 --- a/Mage/src/mage/abilities/costs/common/ExileFromGraveCost.java +++ b/Mage/src/mage/abilities/costs/common/ExileFromGraveCost.java @@ -36,6 +36,7 @@ import mage.constants.Outcome; import mage.constants.Zone; import mage.game.Game; import mage.players.Player; +import mage.target.common.TargetCardInASingleGraveyard; import mage.target.common.TargetCardInYourGraveyard; import mage.util.CardUtil; @@ -55,8 +56,7 @@ public class ExileFromGraveCost extends CostImpl { } if (!this.text.endsWith(" from your graveyard")) { this.text = this.text + " from your graveyard"; - } - + } } public ExileFromGraveCost(TargetCardInYourGraveyard target, String text) { @@ -64,6 +64,12 @@ public class ExileFromGraveCost extends CostImpl { this.text = text; } + public ExileFromGraveCost(TargetCardInASingleGraveyard target) { + this.addTarget(target); + this.text = "Exile " + target.getTargetName(); + } + + public ExileFromGraveCost(ExileFromGraveCost cost) { super(cost); } @@ -71,10 +77,9 @@ public class ExileFromGraveCost extends CostImpl { @Override public boolean pay(Ability ability, Game game, UUID sourceId, UUID controllerId, boolean noMana) { if (targets.choose(Outcome.Exile, controllerId, sourceId, game)) { - Player player = game.getPlayer(controllerId); for (UUID targetId: targets.get(0).getTargets()) { - Card card = player.getGraveyard().get(targetId, game); - if (card == null) { + Card card = game.getCard(targetId); + if (card == null || !game.getState().getZone(targetId).equals(Zone.GRAVEYARD)) { return false; } paid |= card.moveToZone(Zone.EXILED, sourceId, game, false); diff --git a/Mage/src/mage/counters/CounterType.java b/Mage/src/mage/counters/CounterType.java index 4019208694c..bc0eac54d3b 100644 --- a/Mage/src/mage/counters/CounterType.java +++ b/Mage/src/mage/counters/CounterType.java @@ -36,46 +36,47 @@ import mage.counters.common.*; * @author nantuko */ public enum CounterType { - P1P1(new PlusOneCounter().name), - M1M1(new MinusOneCounter().name), - POISON(new PoisonCounter().name), + AGE(new AgeCounter().name), + AIM(new AimCounter().name), + ARROWHEAD(new ArrowheadCounter().name), + AWAKENING(new AwakeningCounter().name), + BLAZE(new BlazeCounter().name), + BRIBERY(new BriberyCounter().name), CHARGE(new ChargeCounter().name), - LORE(new LoreCounter().name), - LOYALTY(new LoyaltyCounter().name), - LEVEL(new LevelCounter().name), - TIME(new TimeCounter().name), + DESPAIR(new DespairCounter().name), + DEVOTION(new DevotionCounter().name), + DIVINITY(new DivinityCounter().name), + ELIXIR(new ElixirCounter().name), + EON(new EonCounter().name), + EYEBALL(new EyeballCounter().name), FADE(new FadeCounter().name), FATE(new FateCounter().name), FEATHER(new FeatherCounter().name), FUSE(new FuseCounter().name), - QUEST(new QuestCounter().name), - ARROWHEAD(new ArrowheadCounter().name), - AIM(new AimCounter().name), - EON(new EonCounter().name), - AWAKENING(new AwakeningCounter().name), - DEVOTION(new DevotionCounter().name), - DIVINITY(new DivinityCounter().name), - WISH(new WishCounter().name), - HOOFPRINT(new HoofprintCounter().name), HATCHLING(new HatchlingCounter().name), + HOOFPRINT(new HoofprintCounter().name), + ICE(new IceCounter().name), KI(new KiCounter().name), + LEVEL(new LevelCounter().name), + LORE(new LoreCounter().name), + LOYALTY(new LoyaltyCounter().name), + M1M1(new MinusOneCounter().name), + MINING(new MiningCounter().name), + P1P1(new PlusOneCounter().name), + PAGE(new PageCounter().name), + PAIN(new PainCounter().name), + PETRIFICATION(new PetrificationCounter().name), + POISON(new PoisonCounter().name), + PRESSURE(new PressureCounter().name), + QUEST(new QuestCounter().name), SLIME(new SlimeCounter().name), SPORE(new SporeCounter().name), STUDY(new StudyCounter().name), - EYEBALL(new EyeballCounter().name), - ELIXIR(new ElixirCounter().name), - PAIN(new PainCounter().name), - DESPAIR(new DespairCounter().name), - PAGE(new PageCounter().name), - PRESSURE(new PressureCounter().name), - PETRIFICATION(new PetrificationCounter().name), - MINING(new MiningCounter().name), THEFT(new TheftCounter().name), - AGE(new AgeCounter().name), - BLAZE(new BlazeCounter().name), - ICE(new IceCounter().name), - BRIBERY(new BriberyCounter().name), - TOWER(new TowerCounter().name); + TIME(new TimeCounter().name), + TOWER(new TowerCounter().name), + VILE(new VileCounter().name), + WISH(new WishCounter().name); private String name; @@ -187,6 +188,8 @@ public enum CounterType { return new BlazeCounter(amount); case ICE: return new IceCounter(amount); + case VILE: + return new VileCounter(amount); } return null; diff --git a/Mage/src/mage/counters/common/VileCounter.java b/Mage/src/mage/counters/common/VileCounter.java new file mode 100644 index 00000000000..b922334050d --- /dev/null +++ b/Mage/src/mage/counters/common/VileCounter.java @@ -0,0 +1,49 @@ +/* +* 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.counters.common; + +import mage.counters.Counter; + +/** + * + * @author LevelX2 + */ + +public class VileCounter extends Counter { + + public VileCounter() { + super("vile"); + this.count = 1; + } + + public VileCounter(int amount) { + super("vile"); + this.count = amount; + } + +}