diff --git a/Mage.Sets/src/mage/sets/anthologyjacevschandra/SoulbrightFlamekin.java b/Mage.Sets/src/mage/sets/anthologyjacevschandra/SoulbrightFlamekin.java new file mode 100644 index 00000000000..c7b66959f19 --- /dev/null +++ b/Mage.Sets/src/mage/sets/anthologyjacevschandra/SoulbrightFlamekin.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.anthologyjacevschandra; + +import java.util.UUID; + +/** + * + * @author LevelX2 + */ +public class SoulbrightFlamekin extends mage.sets.lorwyn.SoulbrightFlamekin { + + public SoulbrightFlamekin(UUID ownerId) { + super(ownerId); + this.cardNumber = 37; + this.expansionSetCode = "DD3"; + } + + public SoulbrightFlamekin(final SoulbrightFlamekin card) { + super(card); + } + + @Override + public SoulbrightFlamekin copy() { + return new SoulbrightFlamekin(this); + } +} diff --git a/Mage.Sets/src/mage/sets/jacevschandra/SoulbrightFlamekin.java b/Mage.Sets/src/mage/sets/jacevschandra/SoulbrightFlamekin.java new file mode 100644 index 00000000000..45a110519fe --- /dev/null +++ b/Mage.Sets/src/mage/sets/jacevschandra/SoulbrightFlamekin.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.jacevschandra; + +import java.util.UUID; + +/** + * + * @author LevelX2 + */ +public class SoulbrightFlamekin extends mage.sets.lorwyn.SoulbrightFlamekin { + + public SoulbrightFlamekin(UUID ownerId) { + super(ownerId); + this.cardNumber = 37; + this.expansionSetCode = "DD2"; + } + + public SoulbrightFlamekin(final SoulbrightFlamekin card) { + super(card); + } + + @Override + public SoulbrightFlamekin copy() { + return new SoulbrightFlamekin(this); + } +} diff --git a/Mage.Sets/src/mage/sets/lorwyn/InnerFlameIgniter.java b/Mage.Sets/src/mage/sets/lorwyn/InnerFlameIgniter.java new file mode 100644 index 00000000000..64103a73a50 --- /dev/null +++ b/Mage.Sets/src/mage/sets/lorwyn/InnerFlameIgniter.java @@ -0,0 +1,129 @@ +/* + * 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.mana.ManaCostsImpl; +import mage.abilities.effects.OneShotEffect; +import mage.abilities.effects.common.continuous.BoostControlledEffect; +import mage.abilities.effects.common.continuous.GainAbilityControlledEffect; +import mage.abilities.keyword.FirstStrikeAbility; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.Outcome; +import mage.constants.Rarity; +import mage.constants.Zone; +import mage.game.Game; +import mage.game.permanent.Permanent; +import mage.players.Player; + +/** + * + * @author LevelX2 + */ +public class InnerFlameIgniter extends CardImpl { + + public InnerFlameIgniter(UUID ownerId) { + super(ownerId, 182, "Inner-Flame Igniter", Rarity.UNCOMMON, new CardType[]{CardType.CREATURE}, "{2}{R}"); + this.expansionSetCode = "LRW"; + this.subtype.add("Elemental"); + this.subtype.add("Warrior"); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // {2}{R}: Creatures you control get +1/+0 until end of turn. If this is the third time this ability has resolved this turn, creatures you control gain first strike until end of turn. + Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostControlledEffect(1,0,Duration.EndOfTurn), new ManaCostsImpl("{2}{R}")); + ability.addEffect(new InnerFlameIgniterEffect()); + this.addAbility(ability); + } + + public InnerFlameIgniter(final InnerFlameIgniter card) { + super(card); + } + + @Override + public InnerFlameIgniter copy() { + return new InnerFlameIgniter(this); + } +} + +class InnerFlameIgniterEffect extends OneShotEffect { + + class ActivationInfo { + public int zoneChangeCounter; + public int turn; + public int activations; + } + + public InnerFlameIgniterEffect() { + super(Outcome.Damage); + this.staticText = "If this is the third time this ability has resolved this turn, creatures you control gain first strike until end of turn"; + } + + public InnerFlameIgniterEffect(final InnerFlameIgniterEffect effect) { + super(effect); + } + + @Override + public InnerFlameIgniterEffect copy() { + return new InnerFlameIgniterEffect(this); + } + + @Override + public boolean apply(Game game, Ability source) { + Player controller = game.getPlayer(source.getControllerId()); + Permanent sourcePermanent = game.getPermanent(source.getSourceId()); + if (controller != null && sourcePermanent != null) { + ActivationInfo info; + Object object = game.getState().getValue(source.getSourceId() + "ActivationInfo"); + if (object instanceof ActivationInfo) { + info = (ActivationInfo) object; + if (info.turn != game.getTurnNum() || sourcePermanent.getZoneChangeCounter(game) != info.zoneChangeCounter) { + info.turn = game.getTurnNum(); + info.zoneChangeCounter = sourcePermanent.getZoneChangeCounter(game); + info.activations = 0; + } + } else { + info = new ActivationInfo(); + info.turn = game.getTurnNum(); + info.zoneChangeCounter = sourcePermanent.getZoneChangeCounter(game); + game.getState().setValue(source.getSourceId() + "ActivationInfo", info); + } + info.activations++; + if (info.activations == 3) { + game.addEffect(new GainAbilityControlledEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn), source); + } + return true; + } + return false; + } +} \ No newline at end of file diff --git a/Mage.Sets/src/mage/sets/lorwyn/SoulbrightFlamekin.java b/Mage.Sets/src/mage/sets/lorwyn/SoulbrightFlamekin.java new file mode 100644 index 00000000000..7fc49236753 --- /dev/null +++ b/Mage.Sets/src/mage/sets/lorwyn/SoulbrightFlamekin.java @@ -0,0 +1,131 @@ +/* + * 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.Mana; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.OneShotEffect; +import mage.abilities.effects.common.continuous.GainAbilityTargetEffect; +import mage.abilities.keyword.TrampleAbility; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.Outcome; +import mage.constants.Rarity; +import mage.constants.Zone; +import mage.game.Game; +import mage.game.permanent.Permanent; +import mage.players.Player; +import mage.target.common.TargetCreaturePermanent; + +/** + * + * @author LevelX2 + */ +public class SoulbrightFlamekin extends CardImpl { + + public SoulbrightFlamekin(UUID ownerId) { + super(ownerId, 190, "Soulbright Flamekin", Rarity.COMMON, new CardType[]{CardType.CREATURE}, "{1}{R}"); + this.expansionSetCode = "LRW"; + this.subtype.add("Elemental"); + this.subtype.add("Shaman"); + this.power = new MageInt(2); + this.toughness = new MageInt(1); + + // {2}: Target creature gains trample until end of turn. If this is the third time this ability has resolved this turn, you may add {R}{R}{R}{R}{R}{R}{R}{R} to your mana pool. + Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(TrampleAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{2}")); + ability.addEffect(new SoulbrightFlamekinEffect()); + ability.addTarget(new TargetCreaturePermanent()); + this.addAbility(ability); + } + + public SoulbrightFlamekin(final SoulbrightFlamekin card) { + super(card); + } + + @Override + public SoulbrightFlamekin copy() { + return new SoulbrightFlamekin(this); + } +} + +class SoulbrightFlamekinEffect extends OneShotEffect { + + class ActivationInfo { + public int zoneChangeCounter; + public int turn; + public int activations; + } + + public SoulbrightFlamekinEffect() { + super(Outcome.Damage); + this.staticText = "If this is the third time this ability has resolved this turn, you may add {R}{R}{R}{R}{R}{R}{R}{R} to your mana pool"; + } + + public SoulbrightFlamekinEffect(final SoulbrightFlamekinEffect effect) { + super(effect); + } + + @Override + public SoulbrightFlamekinEffect copy() { + return new SoulbrightFlamekinEffect(this); + } + + @Override + public boolean apply(Game game, Ability source) { + Player controller = game.getPlayer(source.getControllerId()); + Permanent sourcePermanent = game.getPermanent(source.getSourceId()); + if (controller != null && sourcePermanent != null) { + ActivationInfo info; + Object object = game.getState().getValue(source.getSourceId() + "ActivationInfo"); + if (object instanceof ActivationInfo) { + info = (ActivationInfo) object; + if (info.turn != game.getTurnNum() || sourcePermanent.getZoneChangeCounter(game) != info.zoneChangeCounter) { + info.turn = game.getTurnNum(); + info.zoneChangeCounter = sourcePermanent.getZoneChangeCounter(game); + info.activations = 0; + } + } else { + info = new ActivationInfo(); + info.turn = game.getTurnNum(); + info.zoneChangeCounter = sourcePermanent.getZoneChangeCounter(game); + game.getState().setValue(source.getSourceId() + "ActivationInfo", info); + } + info.activations++; + if (info.activations == 3) { + controller.getManaPool().addMana(new Mana(8,0,0,0,0,0,0), game, source); + } + return true; + } + return false; + } +} diff --git a/Mage.Sets/src/mage/sets/modernmasters2015/InnerFlameIgniter.java b/Mage.Sets/src/mage/sets/modernmasters2015/InnerFlameIgniter.java new file mode 100644 index 00000000000..445d40e5a70 --- /dev/null +++ b/Mage.Sets/src/mage/sets/modernmasters2015/InnerFlameIgniter.java @@ -0,0 +1,54 @@ +/* + * 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.modernmasters2015; + +import java.util.UUID; +import mage.constants.Rarity; + +/** + * + * @author LevelX2 + */ +public class InnerFlameIgniter extends mage.sets.lorwyn.InnerFlameIgniter { + + public InnerFlameIgniter(UUID ownerId) { + super(ownerId); + this.cardNumber = 120; + this.expansionSetCode = "MMB"; + this.rarity = Rarity.COMMON; + } + + public InnerFlameIgniter(final InnerFlameIgniter card) { + super(card); + } + + @Override + public InnerFlameIgniter copy() { + return new InnerFlameIgniter(this); + } +} diff --git a/Mage.Sets/src/mage/sets/modernmasters2015/SoulbrightFlamekin.java b/Mage.Sets/src/mage/sets/modernmasters2015/SoulbrightFlamekin.java new file mode 100644 index 00000000000..2030dad5549 --- /dev/null +++ b/Mage.Sets/src/mage/sets/modernmasters2015/SoulbrightFlamekin.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.modernmasters2015; + +import java.util.UUID; + +/** + * + * @author LevelX2 + */ +public class SoulbrightFlamekin extends mage.sets.lorwyn.SoulbrightFlamekin { + + public SoulbrightFlamekin(UUID ownerId) { + super(ownerId); + this.cardNumber = 126; + this.expansionSetCode = "MMB"; + } + + public SoulbrightFlamekin(final SoulbrightFlamekin card) { + super(card); + } + + @Override + public SoulbrightFlamekin copy() { + return new SoulbrightFlamekin(this); + } +}