diff --git a/Mage.Sets/src/mage/sets/antiquities/DampingField.java b/Mage.Sets/src/mage/sets/antiquities/DampingField.java new file mode 100644 index 00000000000..dd9b47f1c1f --- /dev/null +++ b/Mage.Sets/src/mage/sets/antiquities/DampingField.java @@ -0,0 +1,94 @@ +/* + * 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.antiquities; + +import java.util.UUID; +import mage.abilities.Ability; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.RestrictionUntapNotMoreThanEffect; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.Rarity; +import mage.constants.Zone; +import mage.filter.common.FilterControlledArtifactPermanent; +import mage.filter.common.FilterControlledPermanent; +import mage.game.Game; +import mage.players.Player; + +/** + * + * @author LevelX2 + */ +public class DampingField extends CardImpl { + + public DampingField(UUID ownerId) { + super(ownerId, 98, "Damping Field", Rarity.UNCOMMON, new CardType[]{CardType.ENCHANTMENT}, "{2}{W}"); + this.expansionSetCode = "ATQ"; + + this.color.setWhite(true); + + // Players can't untap more than one artifact during their untap steps. + this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new DampingFieldEffect())); + } + + public DampingField(final DampingField card) { + super(card); + } + + @Override + public DampingField copy() { + return new DampingField(this); + } +} + +class DampingFieldEffect extends RestrictionUntapNotMoreThanEffect { + + private static final FilterControlledPermanent filter = new FilterControlledArtifactPermanent("an artifact"); + + public DampingFieldEffect() { + super(Duration.WhileOnBattlefield, 1, filter); + staticText = "Players can't untap more than one artifact during their untap steps"; + } + + public DampingFieldEffect(final DampingFieldEffect effect) { + super(effect); + } + + @Override + public boolean applies(Player player, Ability source, Game game) { + // applies to all players + return true; + } + + @Override + public DampingFieldEffect copy() { + return new DampingFieldEffect(this); + } + +} diff --git a/Mage.Sets/src/mage/sets/championsofkamigawa/ImiStatue.java b/Mage.Sets/src/mage/sets/championsofkamigawa/ImiStatue.java new file mode 100644 index 00000000000..f34ae3d0c71 --- /dev/null +++ b/Mage.Sets/src/mage/sets/championsofkamigawa/ImiStatue.java @@ -0,0 +1,95 @@ +/* + * 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.championsofkamigawa; + +import java.util.UUID; +import mage.abilities.Ability; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.RestrictionUntapNotMoreThanEffect; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.Rarity; +import mage.constants.Zone; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterArtifactPermanent; +import mage.filter.common.FilterControlledArtifactPermanent; +import mage.filter.common.FilterControlledPermanent; +import mage.game.Game; +import mage.players.Player; + +/** + * + * @author LevelX2 + */ +public class ImiStatue extends CardImpl { + + public ImiStatue(UUID ownerId) { + super(ownerId, 255, "Imi Statue", Rarity.RARE, new CardType[]{CardType.ARTIFACT}, "{3}"); + this.expansionSetCode = "CHK"; + + // Players can't untap more than one artifact during their untap steps. + this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ImiStatueEffect())); + + } + + public ImiStatue(final ImiStatue card) { + super(card); + } + + @Override + public ImiStatue copy() { + return new ImiStatue(this); + } +} + +class ImiStatueEffect extends RestrictionUntapNotMoreThanEffect { + + private static final FilterControlledPermanent filter = new FilterControlledArtifactPermanent("an artifact"); + + public ImiStatueEffect() { + super(Duration.WhileOnBattlefield, 1, filter); + staticText = "Players can't untap more than one artifact during their untap steps"; + } + + public ImiStatueEffect(final ImiStatueEffect effect) { + super(effect); + } + + @Override + public boolean applies(Player player, Ability source, Game game) { + // applied to all players + return true; + } + + @Override + public ImiStatueEffect copy() { + return new ImiStatueEffect(this); + } + +} diff --git a/Mage.Sets/src/mage/sets/fifthedition/WinterOrb.java b/Mage.Sets/src/mage/sets/fifthedition/WinterOrb.java new file mode 100644 index 00000000000..70908110f0e --- /dev/null +++ b/Mage.Sets/src/mage/sets/fifthedition/WinterOrb.java @@ -0,0 +1,52 @@ +/* + * Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are + * permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND + * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * The views and conclusions contained in the software and documentation are those of the + * authors and should not be interpreted as representing official policies, either expressed + * or implied, of BetaSteward_at_googlemail.com. + */ +package mage.sets.fifthedition; + +import java.util.UUID; + +/** + * + * @author LevelX2 + */ +public class WinterOrb extends mage.sets.limitedalpha.WinterOrb { + + public WinterOrb(UUID ownerId) { + super(ownerId); + this.cardNumber = 408; + this.expansionSetCode = "5ED"; + } + + public WinterOrb(final WinterOrb card) { + super(card); + } + + @Override + public WinterOrb copy() { + return new WinterOrb(this); + } +} diff --git a/Mage.Sets/src/mage/sets/fourthedition/WinterOrb.java b/Mage.Sets/src/mage/sets/fourthedition/WinterOrb.java new file mode 100644 index 00000000000..caf4d4315b8 --- /dev/null +++ b/Mage.Sets/src/mage/sets/fourthedition/WinterOrb.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.fourthedition; + +import java.util.UUID; + +/** + * + * @author LevelX2 + */ +public class WinterOrb extends mage.sets.limitedalpha.WinterOrb { + + public WinterOrb(UUID ownerId) { + super(ownerId); + this.cardNumber = 376; + this.expansionSetCode = "4ED"; + } + + public WinterOrb(final WinterOrb card) { + super(card); + } + + @Override + public WinterOrb copy() { + return new WinterOrb(this); + } +} diff --git a/Mage.Sets/src/mage/sets/limitedalpha/WinterOrb.java b/Mage.Sets/src/mage/sets/limitedalpha/WinterOrb.java new file mode 100644 index 00000000000..0d5a0404732 --- /dev/null +++ b/Mage.Sets/src/mage/sets/limitedalpha/WinterOrb.java @@ -0,0 +1,93 @@ +/* + * 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.limitedalpha; + +import java.util.UUID; +import mage.abilities.Ability; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.RestrictionUntapNotMoreThanEffect; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.Rarity; +import mage.constants.Zone; +import mage.filter.common.FilterControlledLandPermanent; +import mage.filter.common.FilterControlledPermanent; +import mage.game.Game; +import mage.players.Player; + +/** + * + * @author LevelX2 + */ +public class WinterOrb extends CardImpl { + + public WinterOrb(UUID ownerId) { + super(ownerId, 275, "Winter Orb", Rarity.RARE, new CardType[]{CardType.ARTIFACT}, "{2}"); + this.expansionSetCode = "LEA"; + + // Players can't untap more than one land during their untap steps. + this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new WinterOrbEffect())); + + } + + public WinterOrb(final WinterOrb card) { + super(card); + } + + @Override + public WinterOrb copy() { + return new WinterOrb(this); + } +} + +class WinterOrbEffect extends RestrictionUntapNotMoreThanEffect { + + private static final FilterControlledPermanent filter = new FilterControlledLandPermanent(); + + public WinterOrbEffect() { + super(Duration.WhileOnBattlefield, 1, filter); + staticText = "Players can't untap more than one land during their untap steps"; + } + + public WinterOrbEffect(final WinterOrbEffect effect) { + super(effect); + } + + @Override + public boolean applies(Player player, Ability source, Game game) { + // applied to all players + return true; + } + + @Override + public WinterOrbEffect copy() { + return new WinterOrbEffect(this); + } + +} diff --git a/Mage.Sets/src/mage/sets/limitedbeta/WinterOrb.java b/Mage.Sets/src/mage/sets/limitedbeta/WinterOrb.java new file mode 100644 index 00000000000..2774ed3cb8e --- /dev/null +++ b/Mage.Sets/src/mage/sets/limitedbeta/WinterOrb.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.limitedbeta; + +import java.util.UUID; + +/** + * + * @author LevelX2 + */ +public class WinterOrb extends mage.sets.limitedalpha.WinterOrb { + + public WinterOrb(UUID ownerId) { + super(ownerId); + this.cardNumber = 276; + this.expansionSetCode = "LEB"; + } + + public WinterOrb(final WinterOrb card) { + super(card); + } + + @Override + public WinterOrb copy() { + return new WinterOrb(this); + } +} diff --git a/Mage.Sets/src/mage/sets/prophecy/MunghaWurm.java b/Mage.Sets/src/mage/sets/prophecy/MunghaWurm.java new file mode 100644 index 00000000000..1dc1ad1a816 --- /dev/null +++ b/Mage.Sets/src/mage/sets/prophecy/MunghaWurm.java @@ -0,0 +1,98 @@ +/* + * 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.prophecy; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.RestrictionUntapNotMoreThanEffect; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.Rarity; +import mage.constants.Zone; +import mage.filter.common.FilterControlledLandPermanent; +import mage.filter.common.FilterControlledPermanent; +import mage.game.Game; +import mage.players.Player; + +/** + * + * @author LevelX2 + */ +public class MunghaWurm extends CardImpl { + + public MunghaWurm(UUID ownerId) { + super(ownerId, 119, "Mungha Wurm", Rarity.RARE, new CardType[]{CardType.CREATURE}, "{2}{G}{G}"); + this.expansionSetCode = "PCY"; + this.subtype.add("Wurm"); + + this.color.setGreen(true); + this.power = new MageInt(6); + this.toughness = new MageInt(5); + + // You can't untap more than one land during your untap step. + this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new MunghaWurmEffect())); + } + + public MunghaWurm(final MunghaWurm card) { + super(card); + } + + @Override + public MunghaWurm copy() { + return new MunghaWurm(this); + } +} + +class MunghaWurmEffect extends RestrictionUntapNotMoreThanEffect { + + private static final FilterControlledPermanent filter = new FilterControlledLandPermanent(); + + public MunghaWurmEffect() { + super(Duration.WhileOnBattlefield, 1, filter); + staticText = "Players can't untap more than one land during their untap steps"; + } + + public MunghaWurmEffect(final MunghaWurmEffect effect) { + super(effect); + } + + @Override + public boolean applies(Player player, Ability source, Game game) { + // applied to all players + return true; + } + + @Override + public MunghaWurmEffect copy() { + return new MunghaWurmEffect(this); + } + +} diff --git a/Mage.Sets/src/mage/sets/revisededition/WinterOrb.java b/Mage.Sets/src/mage/sets/revisededition/WinterOrb.java new file mode 100644 index 00000000000..d722e714463 --- /dev/null +++ b/Mage.Sets/src/mage/sets/revisededition/WinterOrb.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.revisededition; + +import java.util.UUID; + +/** + * + * @author LevelX2 + */ +public class WinterOrb extends mage.sets.limitedalpha.WinterOrb { + + public WinterOrb(UUID ownerId) { + super(ownerId); + this.cardNumber = 280; + this.expansionSetCode = "3ED"; + } + + public WinterOrb(final WinterOrb card) { + super(card); + } + + @Override + public WinterOrb copy() { + return new WinterOrb(this); + } +} diff --git a/Mage.Sets/src/mage/sets/seventhedition/StaticOrb.java b/Mage.Sets/src/mage/sets/seventhedition/StaticOrb.java new file mode 100644 index 00000000000..6259152651e --- /dev/null +++ b/Mage.Sets/src/mage/sets/seventhedition/StaticOrb.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.seventhedition; + +import java.util.UUID; + +/** + * + * @author LevelX2 + */ +public class StaticOrb extends mage.sets.tempest.StaticOrb { + + public StaticOrb(UUID ownerId) { + super(ownerId); + this.cardNumber = 319; + this.expansionSetCode = "7ED"; + } + + public StaticOrb(final StaticOrb card) { + super(card); + } + + @Override + public StaticOrb copy() { + return new StaticOrb(this); + } +} diff --git a/Mage.Sets/src/mage/sets/tempest/StaticOrb.java b/Mage.Sets/src/mage/sets/tempest/StaticOrb.java new file mode 100644 index 00000000000..48cd13b9ba8 --- /dev/null +++ b/Mage.Sets/src/mage/sets/tempest/StaticOrb.java @@ -0,0 +1,98 @@ +/* + * 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.tempest; + +import java.util.UUID; +import mage.abilities.Ability; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.RestrictionUntapNotMoreThanEffect; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.Rarity; +import mage.constants.Zone; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterControlledPermanent; +import mage.game.Game; +import mage.game.permanent.Permanent; +import mage.players.Player; + +/** + * + * @author LevelX2 + */ +public class StaticOrb extends CardImpl { + + public StaticOrb(UUID ownerId) { + super(ownerId, 300, "Static Orb", Rarity.RARE, new CardType[]{CardType.ARTIFACT}, "{3}"); + this.expansionSetCode = "TMP"; + + // As long as Static Orb is untapped, players can't untap more than two permanents during their untap steps. + this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new StaticOrbEffect())); + } + + public StaticOrb(final StaticOrb card) { + super(card); + } + + @Override + public StaticOrb copy() { + return new StaticOrb(this); + } +} + + +class StaticOrbEffect extends RestrictionUntapNotMoreThanEffect { + + private static final FilterControlledPermanent filter = new FilterControlledPermanent(); + + public StaticOrbEffect() { + super(Duration.WhileOnBattlefield, 2, filter); + staticText = "As long as Static Orb is untapped, players can't untap more than two permanents during their untap steps"; + } + + public StaticOrbEffect(final StaticOrbEffect effect) { + super(effect); + } + + @Override + public boolean applies(Player player, Ability source, Game game) { + // applied to all players + Permanent permanent = game.getPermanent(source.getSourceId()); + if (!permanent.isTapped()) { + return true; + } + return false; + } + + @Override + public StaticOrbEffect copy() { + return new StaticOrbEffect(this); + } + +} diff --git a/Mage.Sets/src/mage/sets/unlimitededition/WinterOrb.java b/Mage.Sets/src/mage/sets/unlimitededition/WinterOrb.java new file mode 100644 index 00000000000..169170bb029 --- /dev/null +++ b/Mage.Sets/src/mage/sets/unlimitededition/WinterOrb.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.unlimitededition; + +import java.util.UUID; + +/** + * + * @author LevelX2 + */ +public class WinterOrb extends mage.sets.limitedalpha.WinterOrb { + + public WinterOrb(UUID ownerId) { + super(ownerId); + this.cardNumber = 276; + this.expansionSetCode = "2ED"; + } + + public WinterOrb(final WinterOrb card) { + super(card); + } + + @Override + public WinterOrb copy() { + return new WinterOrb(this); + } +}