From fe332ac3ef3c37c57d4c743a43579f71a8ee3ec7 Mon Sep 17 00:00:00 2001 From: Wehk Date: Sat, 4 Jul 2015 13:00:32 +0200 Subject: [PATCH 01/12] Added card: Boggart Forager --- .../src/mage/sets/lorwyn/BoggartForager.java | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 Mage.Sets/src/mage/sets/lorwyn/BoggartForager.java diff --git a/Mage.Sets/src/mage/sets/lorwyn/BoggartForager.java b/Mage.Sets/src/mage/sets/lorwyn/BoggartForager.java new file mode 100644 index 00000000000..864de5601ca --- /dev/null +++ b/Mage.Sets/src/mage/sets/lorwyn/BoggartForager.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.lorwyn; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.SacrificeSourceCost; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.ShuffleLibraryTargetEffect; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.Rarity; +import mage.constants.Zone; +import mage.target.TargetPlayer; + +/** + * + * @author Wehk + */ +public class BoggartForager extends CardImpl { + + public BoggartForager(UUID ownerId) { + super(ownerId, 154, "Boggart Forager", Rarity.COMMON, new CardType[]{CardType.CREATURE}, "{R}"); + this.expansionSetCode = "LRW"; + this.subtype.add("Goblin"); + this.subtype.add("Rogue"); + this.power = new MageInt(1); + this.toughness = new MageInt(1); + + // {R}, Sacrifice Boggart Forager: Target player shuffles his or her library. + Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ShuffleLibraryTargetEffect(), new SacrificeSourceCost()); + ability.addManaCost(new ManaCostsImpl("{R}")); + ability.addTarget(new TargetPlayer()); + this.addAbility(ability); + } + + public BoggartForager(final BoggartForager card) { + super(card); + } + + @Override + public BoggartForager copy() { + return new BoggartForager(this); + } +} From ccecc930b037ba03f75d7534f225ac8905402f84 Mon Sep 17 00:00:00 2001 From: Wehk Date: Sat, 4 Jul 2015 13:02:30 +0200 Subject: [PATCH 02/12] Added card: Exiled Boggart --- .../src/mage/sets/lorwyn/ExiledBoggart.java | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Mage.Sets/src/mage/sets/lorwyn/ExiledBoggart.java diff --git a/Mage.Sets/src/mage/sets/lorwyn/ExiledBoggart.java b/Mage.Sets/src/mage/sets/lorwyn/ExiledBoggart.java new file mode 100644 index 00000000000..6503fffe837 --- /dev/null +++ b/Mage.Sets/src/mage/sets/lorwyn/ExiledBoggart.java @@ -0,0 +1,64 @@ +/* + * 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.MageInt; +import mage.abilities.common.DiesTriggeredAbility; +import mage.abilities.effects.common.discard.DiscardControllerEffect; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.Rarity; + +/** + * + * @author Wehk + */ +public class ExiledBoggart extends CardImpl { + + public ExiledBoggart(UUID ownerId) { + super(ownerId, 109, "Exiled Boggart", Rarity.COMMON, new CardType[]{CardType.CREATURE}, "{1}{B}"); + this.expansionSetCode = "LRW"; + this.subtype.add("Goblin"); + this.subtype.add("Rogue"); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // When Exiled Boggart dies, discard a card. + this.addAbility(new DiesTriggeredAbility(new DiscardControllerEffect(1), false)); + } + + public ExiledBoggart(final ExiledBoggart card) { + super(card); + } + + @Override + public ExiledBoggart copy() { + return new ExiledBoggart(this); + } +} From 629f17cefb8b536b6660caf03cd7f800d27c5cf1 Mon Sep 17 00:00:00 2001 From: Wehk Date: Sat, 4 Jul 2015 13:03:09 +0200 Subject: [PATCH 03/12] Added card: Goldmeadow Dodger --- .../mage/sets/lorwyn/GoldmeadowDodger.java | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 Mage.Sets/src/mage/sets/lorwyn/GoldmeadowDodger.java diff --git a/Mage.Sets/src/mage/sets/lorwyn/GoldmeadowDodger.java b/Mage.Sets/src/mage/sets/lorwyn/GoldmeadowDodger.java new file mode 100644 index 00000000000..a957e34130f --- /dev/null +++ b/Mage.Sets/src/mage/sets/lorwyn/GoldmeadowDodger.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.lorwyn; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.common.combat.CantBeBlockedByCreaturesSourceEffect; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.Rarity; +import mage.constants.Zone; +import mage.filter.Filter; +import mage.filter.common.FilterCreaturePermanent; +import mage.filter.predicate.mageobject.PowerPredicate; + +/** + * + * @author Wehk + */ +public class GoldmeadowDodger extends CardImpl { + + private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("creatures with power 4 or greater"); + + static { + filter.add(new PowerPredicate(Filter.ComparisonType.GreaterThan, 3)); + } + + public GoldmeadowDodger(UUID ownerId) { + super(ownerId, 16, "Goldmeadow Dodger", Rarity.COMMON, new CardType[]{CardType.CREATURE}, "{W}"); + this.expansionSetCode = "LRW"; + this.subtype.add("Kithkin"); + this.subtype.add("Rogue"); + this.power = new MageInt(1); + this.toughness = new MageInt(1); + + // Goldmeadow Dodger can't be blocked by creatures with power 4 or greater. + this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBeBlockedByCreaturesSourceEffect(filter, Duration.WhileOnBattlefield))); + } + + public GoldmeadowDodger(final GoldmeadowDodger card) { + super(card); + } + + @Override + public GoldmeadowDodger copy() { + return new GoldmeadowDodger(this); + } +} From 502bd3e6fd475ad58435b7d4011118e5b5950c24 Mon Sep 17 00:00:00 2001 From: Wehk Date: Sat, 4 Jul 2015 13:04:28 +0200 Subject: [PATCH 04/12] Added card: Rootgrapple --- .../src/mage/sets/lorwyn/Rootgrapple.java | 83 +++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 Mage.Sets/src/mage/sets/lorwyn/Rootgrapple.java diff --git a/Mage.Sets/src/mage/sets/lorwyn/Rootgrapple.java b/Mage.Sets/src/mage/sets/lorwyn/Rootgrapple.java new file mode 100644 index 00000000000..bf4fcc4c962 --- /dev/null +++ b/Mage.Sets/src/mage/sets/lorwyn/Rootgrapple.java @@ -0,0 +1,83 @@ +/* + * 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.abilities.condition.common.PermanentsOnTheBattlefieldCondition; +import mage.abilities.decorator.ConditionalOneShotEffect; +import mage.abilities.effects.common.DestroyTargetEffect; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.Rarity; +import mage.filter.FilterPermanent; +import mage.filter.predicate.Predicates; +import mage.filter.predicate.mageobject.CardTypePredicate; +import mage.filter.predicate.mageobject.SubtypePredicate; +import mage.target.TargetPermanent; + +/** + * + * @author Wehk + */ +public class Rootgrapple extends CardImpl { + + private static final FilterPermanent filterNoncreature = new FilterPermanent("noncreature permanent"); + private static final FilterPermanent filterTreefolk = new FilterPermanent("If you control a Treefolk,"); + + static { + filterNoncreature.add(Predicates.not(new CardTypePredicate(CardType.CREATURE))); + } + static { + filterTreefolk.add(new SubtypePredicate("Treefolk")); + } + + public Rootgrapple(UUID ownerId) { + super(ownerId, 234, "Rootgrapple", Rarity.COMMON, new CardType[]{CardType.TRIBAL, CardType.INSTANT}, "{4}{G}"); + this.expansionSetCode = "LRW"; + this.subtype.add("Treefolk"); + + // Destroy target noncreature permanent. + this.getSpellAbility().addTarget(new TargetPermanent(filterNoncreature)); + this.getSpellAbility().addEffect(new DestroyTargetEffect()); + + // If you control a Treefolk, draw a card. + this.getSpellAbility().addEffect(new ConditionalOneShotEffect(new DrawCardSourceControllerEffect(1), + new PermanentsOnTheBattlefieldCondition(filterTreefolk, PermanentsOnTheBattlefieldCondition.CountType.MORE_THAN, 0), + "If you control a Treefolk, draw a card")); + } + + public Rootgrapple(final Rootgrapple card) { + super(card); + } + + @Override + public Rootgrapple copy() { + return new Rootgrapple(this); + } +} From d280a015f4ac96ce1b1dd958df60e03bb6dcde16 Mon Sep 17 00:00:00 2001 From: Wehk Date: Sat, 4 Jul 2015 13:05:13 +0200 Subject: [PATCH 05/12] Added card: Ribbons of Night --- .../src/mage/sets/ravnica/RibbonsOfNight.java | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 Mage.Sets/src/mage/sets/ravnica/RibbonsOfNight.java diff --git a/Mage.Sets/src/mage/sets/ravnica/RibbonsOfNight.java b/Mage.Sets/src/mage/sets/ravnica/RibbonsOfNight.java new file mode 100644 index 00000000000..b43344bdc6e --- /dev/null +++ b/Mage.Sets/src/mage/sets/ravnica/RibbonsOfNight.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.ravnica; + +import java.util.UUID; +import mage.abilities.condition.common.ManaWasSpentCondition; +import mage.abilities.decorator.ConditionalOneShotEffect; +import mage.abilities.effects.Effect; +import mage.abilities.effects.common.DamageTargetEffect; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.GainLifeEffect; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.ColoredManaSymbol; +import mage.constants.Rarity; +import mage.target.common.TargetCreaturePermanent; + +/** + * + * @author Wehk + */ +public class RibbonsOfNight extends CardImpl { + + public RibbonsOfNight(UUID ownerId) { + super(ownerId, 101, "Ribbons of Night", Rarity.UNCOMMON, new CardType[]{CardType.SORCERY}, "{4}{B}"); + this.expansionSetCode = "RAV"; + + // Ribbons of Night deals 4 damage to target creature + Effect effect = new DamageTargetEffect(4); + effect.setText("{this} deals 4 damage to target creature"); + this.getSpellAbility().addEffect(effect); + + // and you gain 4 life. + effect = new GainLifeEffect(4); + effect.setText("and you gain 4 life"); + this.getSpellAbility().addEffect(effect); + this.getSpellAbility().addTarget(new TargetCreaturePermanent()); + + //If {U} was spent to cast Ribbons of Night, draw a card. + this.getSpellAbility().addEffect(new ConditionalOneShotEffect( + new DrawCardSourceControllerEffect(1), + new ManaWasSpentCondition(ColoredManaSymbol.U), "If {U} was spent to cast {this}, draw a card")); + } + + public RibbonsOfNight(final RibbonsOfNight card) { + super(card); + } + + @Override + public RibbonsOfNight copy() { + return new RibbonsOfNight(this); + } +} From eddd451f80327b6b10cc658daefb159a5fee323e Mon Sep 17 00:00:00 2001 From: Wehk Date: Sat, 4 Jul 2015 13:05:36 +0200 Subject: [PATCH 06/12] Added card: Sewerdreg --- .../src/mage/sets/ravnica/Sewerdreg.java | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 Mage.Sets/src/mage/sets/ravnica/Sewerdreg.java diff --git a/Mage.Sets/src/mage/sets/ravnica/Sewerdreg.java b/Mage.Sets/src/mage/sets/ravnica/Sewerdreg.java new file mode 100644 index 00000000000..14d8fe08607 --- /dev/null +++ b/Mage.Sets/src/mage/sets/ravnica/Sewerdreg.java @@ -0,0 +1,73 @@ +/* + * Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are + * permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND + * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * The views and conclusions contained in the software and documentation are those of the + * authors and should not be interpreted as representing official policies, either expressed + * or implied, of BetaSteward_at_googlemail.com. + */ +package mage.sets.ravnica; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.SacrificeSourceCost; +import mage.abilities.effects.common.ExileTargetEffect; +import mage.abilities.keyword.SwampwalkAbility; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.Rarity; +import mage.constants.Zone; +import mage.target.common.TargetCardInGraveyard; + +/** + * + * @author Wehk + */ +public class Sewerdreg extends CardImpl { + + public Sewerdreg(UUID ownerId) { + super(ownerId, 104, "Sewerdreg", Rarity.COMMON, new CardType[]{CardType.CREATURE}, "{3}{B}{B}"); + this.expansionSetCode = "RAV"; + this.subtype.add("Spirit"); + this.power = new MageInt(3); + this.toughness = new MageInt(3); + + // Swampwalk + this.addAbility(new SwampwalkAbility()); + + // Sacrifice Sewerdreg: Exile target card from a graveyard. + Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new SacrificeSourceCost()); + ability.addTarget(new TargetCardInGraveyard()); + this.addAbility(ability); + } + + public Sewerdreg(final Sewerdreg card) { + super(card); + } + + @Override + public Sewerdreg copy() { + return new Sewerdreg(this); + } +} From 24e5d4010893a13c39e4fdbbbe2b41707661e082 Mon Sep 17 00:00:00 2001 From: Wehk Date: Sat, 4 Jul 2015 13:06:21 +0200 Subject: [PATCH 07/12] Added card: Vindictive Mob --- .../src/mage/sets/ravnica/VindictiveMob.java | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 Mage.Sets/src/mage/sets/ravnica/VindictiveMob.java diff --git a/Mage.Sets/src/mage/sets/ravnica/VindictiveMob.java b/Mage.Sets/src/mage/sets/ravnica/VindictiveMob.java new file mode 100644 index 00000000000..cbbc0ab2a3e --- /dev/null +++ b/Mage.Sets/src/mage/sets/ravnica/VindictiveMob.java @@ -0,0 +1,79 @@ +/* + * 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.ravnica; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.common.SacrificeControllerEffect; +import mage.abilities.effects.common.combat.CantBeBlockedByCreaturesSourceEffect; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.Rarity; +import mage.constants.Zone; +import mage.filter.common.FilterCreaturePermanent; +import mage.filter.predicate.mageobject.SubtypePredicate; + +/** + * + * @author Wehk + */ +public class VindictiveMob extends CardImpl { + + private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("can't be blocked by Saporlings"); + + static { + filter.add(new SubtypePredicate("Saporling")); + } + + public VindictiveMob(UUID ownerId) { + super(ownerId, 112, "Vindictive Mob", Rarity.UNCOMMON, new CardType[]{CardType.CREATURE}, "{4}{B}{B}"); + this.expansionSetCode = "RAV"; + this.subtype.add("Human"); + this.subtype.add("Berserker"); + this.power = new MageInt(5); + this.toughness = new MageInt(5); + + // When Vindictive Mob enters the battlefield, sacrifice a creature. + this.addAbility(new EntersBattlefieldTriggeredAbility(new SacrificeControllerEffect(new FilterCreaturePermanent(), 1, null))); + + // Vindictive Mob can't be blocked by Saprolings. + this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBeBlockedByCreaturesSourceEffect(filter, Duration.WhileOnBattlefield))); + } + + public VindictiveMob(final VindictiveMob card) { + super(card); + } + + @Override + public VindictiveMob copy() { + return new VindictiveMob(this); + } +} From 4f8de2d6a9991896c9ec0e0f2c2a25f891591096 Mon Sep 17 00:00:00 2001 From: Wehk Date: Sat, 4 Jul 2015 13:16:35 +0200 Subject: [PATCH 08/12] Corrected Kytheon's Irregulars' Creature Type Changed creature type to "Soldier" from "Solder". --- Mage.Sets/src/mage/sets/magicorigins/KytheonsIrregulars.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/sets/magicorigins/KytheonsIrregulars.java b/Mage.Sets/src/mage/sets/magicorigins/KytheonsIrregulars.java index cb9133fa199..7a33f22e3cd 100644 --- a/Mage.Sets/src/mage/sets/magicorigins/KytheonsIrregulars.java +++ b/Mage.Sets/src/mage/sets/magicorigins/KytheonsIrregulars.java @@ -50,7 +50,7 @@ public class KytheonsIrregulars extends CardImpl { super(ownerId, 24, "Kytheon's Irregulars", Rarity.RARE, new CardType[]{CardType.CREATURE}, "{2}{W}{W}"); this.expansionSetCode = "ORI"; this.subtype.add("Human"); - this.subtype.add("Solder"); + this.subtype.add("Soldier"); this.power = new MageInt(4); this.toughness = new MageInt(3); From 06a2fe68a8a640c774613e262615e72a9f0ef8ea Mon Sep 17 00:00:00 2001 From: Wehk Date: Sat, 4 Jul 2015 15:55:09 +0200 Subject: [PATCH 09/12] Merged static blocks --- Mage.Sets/src/mage/sets/lorwyn/Rootgrapple.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/Mage.Sets/src/mage/sets/lorwyn/Rootgrapple.java b/Mage.Sets/src/mage/sets/lorwyn/Rootgrapple.java index bf4fcc4c962..03d45de6570 100644 --- a/Mage.Sets/src/mage/sets/lorwyn/Rootgrapple.java +++ b/Mage.Sets/src/mage/sets/lorwyn/Rootgrapple.java @@ -52,8 +52,6 @@ public class Rootgrapple extends CardImpl { static { filterNoncreature.add(Predicates.not(new CardTypePredicate(CardType.CREATURE))); - } - static { filterTreefolk.add(new SubtypePredicate("Treefolk")); } From 6b9af161c4b3953da9d38afae97e6d7501dd9fd4 Mon Sep 17 00:00:00 2001 From: Wehk Date: Sat, 4 Jul 2015 15:57:39 +0200 Subject: [PATCH 10/12] Omitted superfluous setText --- Mage.Sets/src/mage/sets/ravnica/RibbonsOfNight.java | 1 - 1 file changed, 1 deletion(-) diff --git a/Mage.Sets/src/mage/sets/ravnica/RibbonsOfNight.java b/Mage.Sets/src/mage/sets/ravnica/RibbonsOfNight.java index b43344bdc6e..a1c03587689 100644 --- a/Mage.Sets/src/mage/sets/ravnica/RibbonsOfNight.java +++ b/Mage.Sets/src/mage/sets/ravnica/RibbonsOfNight.java @@ -52,7 +52,6 @@ public class RibbonsOfNight extends CardImpl { // Ribbons of Night deals 4 damage to target creature Effect effect = new DamageTargetEffect(4); - effect.setText("{this} deals 4 damage to target creature"); this.getSpellAbility().addEffect(effect); // and you gain 4 life. From 8de4987b80d75df421184cb7aab662a69ed17514 Mon Sep 17 00:00:00 2001 From: Wehk Date: Sat, 4 Jul 2015 16:02:28 +0200 Subject: [PATCH 11/12] Fixed saprolings typo --- Mage.Sets/src/mage/sets/ravnica/VindictiveMob.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mage.Sets/src/mage/sets/ravnica/VindictiveMob.java b/Mage.Sets/src/mage/sets/ravnica/VindictiveMob.java index cbbc0ab2a3e..f2b57af28e7 100644 --- a/Mage.Sets/src/mage/sets/ravnica/VindictiveMob.java +++ b/Mage.Sets/src/mage/sets/ravnica/VindictiveMob.java @@ -47,10 +47,10 @@ import mage.filter.predicate.mageobject.SubtypePredicate; */ public class VindictiveMob extends CardImpl { - private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("can't be blocked by Saporlings"); + private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("can't be blocked by Saprolings"); static { - filter.add(new SubtypePredicate("Saporling")); + filter.add(new SubtypePredicate("Saproling")); } public VindictiveMob(UUID ownerId) { From 40421cb54f2a316c61d0246c100512bdd19143d3 Mon Sep 17 00:00:00 2001 From: Wehk Date: Sat, 4 Jul 2015 16:07:02 +0200 Subject: [PATCH 12/12] Swapped cost order --- Mage.Sets/src/mage/sets/lorwyn/BoggartForager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mage.Sets/src/mage/sets/lorwyn/BoggartForager.java b/Mage.Sets/src/mage/sets/lorwyn/BoggartForager.java index 864de5601ca..022a18d0646 100644 --- a/Mage.Sets/src/mage/sets/lorwyn/BoggartForager.java +++ b/Mage.Sets/src/mage/sets/lorwyn/BoggartForager.java @@ -55,8 +55,8 @@ public class BoggartForager extends CardImpl { this.toughness = new MageInt(1); // {R}, Sacrifice Boggart Forager: Target player shuffles his or her library. - Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ShuffleLibraryTargetEffect(), new SacrificeSourceCost()); - ability.addManaCost(new ManaCostsImpl("{R}")); + Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ShuffleLibraryTargetEffect(), new ManaCostsImpl("{R}")); + ability.addCost(new SacrificeSourceCost()); ability.addTarget(new TargetPlayer()); this.addAbility(ability); }