From f539d9d5ec0a6bf96dd975fe726af34e46960e30 Mon Sep 17 00:00:00 2001 From: North Date: Tue, 14 Jun 2011 20:19:49 +0300 Subject: [PATCH] Added cards. Removed unused imports. --- .../src/mage/sets/conflux/Countersquall.java | 72 +++++++++++++++++ .../src/mage/sets/planechase/AncientDen.java | 3 - .../mage/sets/planechase/BorosGuildmage.java | 4 - .../src/mage/sets/planechase/BorosSignet.java | 5 -- .../mage/sets/planechase/DregscapeZombie.java | 6 -- .../mage/sets/planechase/GloryofWarfare.java | 5 -- .../src/mage/sets/planechase/GoldMyr.java | 2 - .../mage/sets/planechase/GreatFurnace.java | 3 - .../src/mage/sets/planechase/HideousEnd.java | 52 +++++++++++++ .../mage/sets/planechase/KorSanctifiers.java | 1 - .../mage/sets/planechase/LightningHelix.java | 5 -- .../src/mage/sets/planechase/RottingRats.java | 4 - .../mage/sets/planechase/SeatoftheSynod.java | 3 - .../src/mage/sets/planechase/TreeofTales.java | 4 - .../mage/sets/planechase/VaultofWhispers.java | 3 - .../shardsofalara/ExecutionersCapsule.java | 78 +++++++++++++++++++ .../sets/shardsofalara/PunishIgnorance.java | 68 ++++++++++++++++ .../src/mage/sets/zendikar/HideousEnd.java | 72 +++++++++++++++++ 18 files changed, 342 insertions(+), 48 deletions(-) create mode 100644 Mage.Sets/src/mage/sets/conflux/Countersquall.java create mode 100644 Mage.Sets/src/mage/sets/planechase/HideousEnd.java create mode 100644 Mage.Sets/src/mage/sets/shardsofalara/ExecutionersCapsule.java create mode 100644 Mage.Sets/src/mage/sets/shardsofalara/PunishIgnorance.java create mode 100644 Mage.Sets/src/mage/sets/zendikar/HideousEnd.java diff --git a/Mage.Sets/src/mage/sets/conflux/Countersquall.java b/Mage.Sets/src/mage/sets/conflux/Countersquall.java new file mode 100644 index 00000000000..ec7b71bbedf --- /dev/null +++ b/Mage.Sets/src/mage/sets/conflux/Countersquall.java @@ -0,0 +1,72 @@ +/* + * 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.conflux; + +import java.util.UUID; +import mage.Constants.CardType; +import mage.Constants.Rarity; +import mage.abilities.effects.common.CounterTargetEffect; +import mage.abilities.effects.common.LoseLifeControllerEffect; +import mage.cards.CardImpl; +import mage.filter.FilterSpell; +import mage.target.TargetSpell; + +/** + * + * @author North + */ +public class Countersquall extends CardImpl { + + private static final FilterSpell filter = new FilterSpell("noncreature spell"); + + static { + filter.getNotCardType().add(CardType.CREATURE); + filter.setNotCardType(true); + } + + public Countersquall(UUID ownerId) { + super(ownerId, 103, "Countersquall", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{U}{B}"); + this.expansionSetCode = "CON"; + + this.color.setBlue(true); + this.color.setBlack(true); + + this.getSpellAbility().addTarget(new TargetSpell(filter)); + this.getSpellAbility().addEffect(new CounterTargetEffect()); + this.getSpellAbility().addEffect(new LoseLifeControllerEffect(2)); + } + + public Countersquall(final Countersquall card) { + super(card); + } + + @Override + public Countersquall copy() { + return new Countersquall(this); + } +} diff --git a/Mage.Sets/src/mage/sets/planechase/AncientDen.java b/Mage.Sets/src/mage/sets/planechase/AncientDen.java index 327a05b8698..50967965133 100644 --- a/Mage.Sets/src/mage/sets/planechase/AncientDen.java +++ b/Mage.Sets/src/mage/sets/planechase/AncientDen.java @@ -29,9 +29,6 @@ package mage.sets.planechase; import java.util.UUID; -import mage.Constants.CardType; -import mage.Constants.Rarity; -import mage.cards.CardImpl; /** * diff --git a/Mage.Sets/src/mage/sets/planechase/BorosGuildmage.java b/Mage.Sets/src/mage/sets/planechase/BorosGuildmage.java index 0f7e2816c2a..9320b2e3b99 100644 --- a/Mage.Sets/src/mage/sets/planechase/BorosGuildmage.java +++ b/Mage.Sets/src/mage/sets/planechase/BorosGuildmage.java @@ -29,10 +29,6 @@ package mage.sets.planechase; import java.util.UUID; -import mage.Constants.CardType; -import mage.Constants.Rarity; -import mage.MageInt; -import mage.cards.CardImpl; /** * diff --git a/Mage.Sets/src/mage/sets/planechase/BorosSignet.java b/Mage.Sets/src/mage/sets/planechase/BorosSignet.java index e06b07c4d73..8f25375333d 100644 --- a/Mage.Sets/src/mage/sets/planechase/BorosSignet.java +++ b/Mage.Sets/src/mage/sets/planechase/BorosSignet.java @@ -29,11 +29,6 @@ package mage.sets.planechase; import java.util.UUID; -import mage.Constants.CardType; -import mage.Constants.Duration; -import mage.Constants.Rarity; -import mage.Constants.Zone; -import mage.cards.CardImpl; /** * diff --git a/Mage.Sets/src/mage/sets/planechase/DregscapeZombie.java b/Mage.Sets/src/mage/sets/planechase/DregscapeZombie.java index 1f60f71d1c1..1b6af5af202 100644 --- a/Mage.Sets/src/mage/sets/planechase/DregscapeZombie.java +++ b/Mage.Sets/src/mage/sets/planechase/DregscapeZombie.java @@ -29,12 +29,6 @@ package mage.sets.planechase; 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.cards.CardImpl; /** * diff --git a/Mage.Sets/src/mage/sets/planechase/GloryofWarfare.java b/Mage.Sets/src/mage/sets/planechase/GloryofWarfare.java index de15a3df92a..1a1efc117b7 100644 --- a/Mage.Sets/src/mage/sets/planechase/GloryofWarfare.java +++ b/Mage.Sets/src/mage/sets/planechase/GloryofWarfare.java @@ -29,11 +29,6 @@ package mage.sets.planechase; import java.util.UUID; -import mage.Constants.CardType; -import mage.Constants.Duration; -import mage.Constants.Rarity; -import mage.Constants.Zone; -import mage.cards.CardImpl; /** * diff --git a/Mage.Sets/src/mage/sets/planechase/GoldMyr.java b/Mage.Sets/src/mage/sets/planechase/GoldMyr.java index e38d90c2a25..f12ed42f167 100644 --- a/Mage.Sets/src/mage/sets/planechase/GoldMyr.java +++ b/Mage.Sets/src/mage/sets/planechase/GoldMyr.java @@ -29,8 +29,6 @@ package mage.sets.planechase; import java.util.UUID; -import mage.Constants.CardType; -import mage.Constants.Rarity; /** * diff --git a/Mage.Sets/src/mage/sets/planechase/GreatFurnace.java b/Mage.Sets/src/mage/sets/planechase/GreatFurnace.java index 91914a1e502..ec86e692bde 100644 --- a/Mage.Sets/src/mage/sets/planechase/GreatFurnace.java +++ b/Mage.Sets/src/mage/sets/planechase/GreatFurnace.java @@ -29,9 +29,6 @@ package mage.sets.planechase; import java.util.UUID; -import mage.Constants.CardType; -import mage.Constants.Rarity; -import mage.cards.CardImpl; /** * diff --git a/Mage.Sets/src/mage/sets/planechase/HideousEnd.java b/Mage.Sets/src/mage/sets/planechase/HideousEnd.java new file mode 100644 index 00000000000..9ac1543d465 --- /dev/null +++ b/Mage.Sets/src/mage/sets/planechase/HideousEnd.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.planechase; + +import java.util.UUID; + +/** + * + * @author North + */ +public class HideousEnd extends mage.sets.zendikar.HideousEnd { + + public HideousEnd(UUID ownerId) { + super(ownerId); + this.cardNumber = 31; + this.expansionSetCode = "HOP"; + } + + public HideousEnd(final HideousEnd card) { + super(card); + } + + @Override + public HideousEnd copy() { + return new HideousEnd(this); + } +} diff --git a/Mage.Sets/src/mage/sets/planechase/KorSanctifiers.java b/Mage.Sets/src/mage/sets/planechase/KorSanctifiers.java index f174bd6c8f0..669bbe16101 100644 --- a/Mage.Sets/src/mage/sets/planechase/KorSanctifiers.java +++ b/Mage.Sets/src/mage/sets/planechase/KorSanctifiers.java @@ -29,7 +29,6 @@ package mage.sets.planechase; import java.util.UUID; -import mage.MageInt; /** * diff --git a/Mage.Sets/src/mage/sets/planechase/LightningHelix.java b/Mage.Sets/src/mage/sets/planechase/LightningHelix.java index 3494c041f80..008b52122f6 100644 --- a/Mage.Sets/src/mage/sets/planechase/LightningHelix.java +++ b/Mage.Sets/src/mage/sets/planechase/LightningHelix.java @@ -29,11 +29,6 @@ package mage.sets.planechase; import java.util.UUID; -import mage.Constants.CardType; -import mage.Constants.Duration; -import mage.Constants.Rarity; -import mage.Constants.Zone; -import mage.cards.CardImpl; /** * diff --git a/Mage.Sets/src/mage/sets/planechase/RottingRats.java b/Mage.Sets/src/mage/sets/planechase/RottingRats.java index c751e4dd9b6..28d7f1b744b 100644 --- a/Mage.Sets/src/mage/sets/planechase/RottingRats.java +++ b/Mage.Sets/src/mage/sets/planechase/RottingRats.java @@ -29,10 +29,6 @@ package mage.sets.planechase; import java.util.UUID; -import mage.Constants.CardType; -import mage.Constants.Rarity; -import mage.MageInt; -import mage.cards.CardImpl; /** * diff --git a/Mage.Sets/src/mage/sets/planechase/SeatoftheSynod.java b/Mage.Sets/src/mage/sets/planechase/SeatoftheSynod.java index 27f7df3636d..4a384410151 100644 --- a/Mage.Sets/src/mage/sets/planechase/SeatoftheSynod.java +++ b/Mage.Sets/src/mage/sets/planechase/SeatoftheSynod.java @@ -29,9 +29,6 @@ package mage.sets.planechase; import java.util.UUID; -import mage.Constants.CardType; -import mage.Constants.Rarity; -import mage.cards.CardImpl; /** * diff --git a/Mage.Sets/src/mage/sets/planechase/TreeofTales.java b/Mage.Sets/src/mage/sets/planechase/TreeofTales.java index 366d5d4f8c8..c39d2459ffc 100644 --- a/Mage.Sets/src/mage/sets/planechase/TreeofTales.java +++ b/Mage.Sets/src/mage/sets/planechase/TreeofTales.java @@ -29,10 +29,6 @@ package mage.sets.planechase; import java.util.UUID; -import mage.Constants.CardType; -import mage.Constants.Rarity; -import mage.abilities.mana.GreenManaAbility; -import mage.cards.CardImpl; /** * diff --git a/Mage.Sets/src/mage/sets/planechase/VaultofWhispers.java b/Mage.Sets/src/mage/sets/planechase/VaultofWhispers.java index 1d74ae4a75f..cfefcd9ad88 100644 --- a/Mage.Sets/src/mage/sets/planechase/VaultofWhispers.java +++ b/Mage.Sets/src/mage/sets/planechase/VaultofWhispers.java @@ -29,9 +29,6 @@ package mage.sets.planechase; import java.util.UUID; -import mage.Constants.CardType; -import mage.Constants.Rarity; -import mage.cards.CardImpl; /** * diff --git a/Mage.Sets/src/mage/sets/shardsofalara/ExecutionersCapsule.java b/Mage.Sets/src/mage/sets/shardsofalara/ExecutionersCapsule.java new file mode 100644 index 00000000000..30ffd5be537 --- /dev/null +++ b/Mage.Sets/src/mage/sets/shardsofalara/ExecutionersCapsule.java @@ -0,0 +1,78 @@ +/* + * Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are + * permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND + * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * The views and conclusions contained in the software and documentation are those of the + * authors and should not be interpreted as representing official policies, either expressed + * or implied, of BetaSteward_at_googlemail.com. + */ +package mage.sets.shardsofalara; + +import java.util.UUID; +import mage.Constants.CardType; +import mage.Constants.Rarity; +import mage.Constants.Zone; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.SacrificeSourceCost; +import mage.abilities.costs.common.TapSourceCost; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.DestroyTargetEffect; +import mage.cards.CardImpl; +import mage.filter.common.FilterCreaturePermanent; +import mage.target.common.TargetCreaturePermanent; + +/** + * + * @author North + */ +public class ExecutionersCapsule extends CardImpl { + + private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("nonblack creature"); + + static { + filter.getColor().setBlack(true); + filter.setUseColor(true); + filter.setNotColor(true); + } + + public ExecutionersCapsule(UUID ownerId) { + super(ownerId, 75, "Executioner's Capsule", Rarity.COMMON, new CardType[]{CardType.ARTIFACT}, "{B}"); + this.expansionSetCode = "ALA"; + + this.color.setBlack(true); + + SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{1}{B}")); + ability.addCost(new TapSourceCost()); + ability.addCost(new SacrificeSourceCost()); + ability.addTarget(new TargetCreaturePermanent(filter)); + this.addAbility(ability); + } + + public ExecutionersCapsule(final ExecutionersCapsule card) { + super(card); + } + + @Override + public ExecutionersCapsule copy() { + return new ExecutionersCapsule(this); + } +} diff --git a/Mage.Sets/src/mage/sets/shardsofalara/PunishIgnorance.java b/Mage.Sets/src/mage/sets/shardsofalara/PunishIgnorance.java new file mode 100644 index 00000000000..67723516c31 --- /dev/null +++ b/Mage.Sets/src/mage/sets/shardsofalara/PunishIgnorance.java @@ -0,0 +1,68 @@ +/* + * 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.shardsofalara; + +import java.util.UUID; +import mage.Constants.CardType; +import mage.Constants.Rarity; +import mage.abilities.effects.common.CounterTargetEffect; +import mage.abilities.effects.common.GainLifeEffect; +import mage.abilities.effects.common.LoseLifeControllerEffect; +import mage.cards.CardImpl; +import mage.filter.FilterSpell; +import mage.target.TargetSpell; + +/** + * + * @author North + */ +public class PunishIgnorance extends CardImpl { + + public PunishIgnorance(UUID ownerId) { + super(ownerId, 183, "Punish Ignorance", Rarity.RARE, new CardType[]{CardType.INSTANT}, "{W}{U}{U}{B}"); + this.expansionSetCode = "ALA"; + + this.color.setWhite(true); + this.color.setBlue(true); + this.color.setBlack(true); + + this.getSpellAbility().addTarget(new TargetSpell(new FilterSpell())); + this.getSpellAbility().addEffect(new CounterTargetEffect()); + this.getSpellAbility().addEffect(new LoseLifeControllerEffect(3)); + this.getSpellAbility().addEffect(new GainLifeEffect(3)); + } + + public PunishIgnorance(final PunishIgnorance card) { + super(card); + } + + @Override + public PunishIgnorance copy() { + return new PunishIgnorance(this); + } +} diff --git a/Mage.Sets/src/mage/sets/zendikar/HideousEnd.java b/Mage.Sets/src/mage/sets/zendikar/HideousEnd.java new file mode 100644 index 00000000000..0d245ca189b --- /dev/null +++ b/Mage.Sets/src/mage/sets/zendikar/HideousEnd.java @@ -0,0 +1,72 @@ +/* + * 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.zendikar; + +import java.util.UUID; +import mage.Constants.CardType; +import mage.Constants.Rarity; +import mage.abilities.effects.common.DestroyTargetEffect; +import mage.abilities.effects.common.LoseLifeControllerEffect; +import mage.cards.CardImpl; +import mage.filter.common.FilterCreaturePermanent; +import mage.target.common.TargetCreaturePermanent; + +/** + * + * @author North + */ +public class HideousEnd extends CardImpl { + + private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("nonblack creature"); + + static { + filter.getColor().setBlack(true); + filter.setUseColor(true); + filter.setNotColor(true); + } + + public HideousEnd(UUID ownerId) { + super(ownerId, 98, "Hideous End", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{1}{B}{B}"); + this.expansionSetCode = "ZEN"; + + this.color.setBlack(true); + + this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter)); + this.getSpellAbility().addEffect(new DestroyTargetEffect()); + this.getSpellAbility().addEffect(new LoseLifeControllerEffect(2)); + } + + public HideousEnd(final HideousEnd card) { + super(card); + } + + @Override + public HideousEnd copy() { + return new HideousEnd(this); + } +}