From 3bb4e7599fd6b851677c755a9396a184ff4308e6 Mon Sep 17 00:00:00 2001 From: fireshoes Date: Wed, 22 Jul 2015 08:41:30 -0500 Subject: [PATCH] Implemented Changeling Berserker and Changeling Titan. Modified effect.setText on Vorrac Battlehorns and Alpha Authority. --- .../mage/sets/gatecrash/AlphaAuthority.java | 2 +- .../mage/sets/lorwyn/ChangelingBerserker.java | 70 +++++++++++++++++++ .../src/mage/sets/lorwyn/ChangelingTitan.java | 66 +++++++++++++++++ .../mage/sets/mirrodin/VorracBattlehorns.java | 2 +- 4 files changed, 138 insertions(+), 2 deletions(-) create mode 100644 Mage.Sets/src/mage/sets/lorwyn/ChangelingBerserker.java create mode 100644 Mage.Sets/src/mage/sets/lorwyn/ChangelingTitan.java diff --git a/Mage.Sets/src/mage/sets/gatecrash/AlphaAuthority.java b/Mage.Sets/src/mage/sets/gatecrash/AlphaAuthority.java index 0600033158..c6adbca77b 100644 --- a/Mage.Sets/src/mage/sets/gatecrash/AlphaAuthority.java +++ b/Mage.Sets/src/mage/sets/gatecrash/AlphaAuthority.java @@ -73,7 +73,7 @@ public class AlphaAuthority extends CardImpl { // Enchanted creature has hexproof and can't be blocked by more than one creature. ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(HexproofAbility.getInstance(), AttachmentType.AURA, Duration.WhileOnBattlefield)); Effect effect = new CantBeBlockedByMoreThanOneAttachedEffect(AttachmentType.AURA,1); - effect.setText(" and can't be blocked by more than one creature"); + effect.setText("and can't be blocked by more than one creature"); ability.addEffect(effect); this.addAbility(ability); } diff --git a/Mage.Sets/src/mage/sets/lorwyn/ChangelingBerserker.java b/Mage.Sets/src/mage/sets/lorwyn/ChangelingBerserker.java new file mode 100644 index 0000000000..58cc77814b --- /dev/null +++ b/Mage.Sets/src/mage/sets/lorwyn/ChangelingBerserker.java @@ -0,0 +1,70 @@ +/* + * Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are + * permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND + * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * The views and conclusions contained in the software and documentation are those of the + * authors and should not be interpreted as representing official policies, either expressed + * or implied, of BetaSteward_at_googlemail.com. + */ +package mage.sets.lorwyn; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.keyword.ChampionAbility; +import mage.abilities.keyword.ChangelingAbility; +import mage.abilities.keyword.HasteAbility; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.Rarity; + +/** + * + * @author fireshoes + */ +public class ChangelingBerserker extends CardImpl { + + public ChangelingBerserker(UUID ownerId) { + super(ownerId, 160, "Changeling Berserker", Rarity.UNCOMMON, new CardType[]{CardType.CREATURE}, "{3}{R}"); + this.expansionSetCode = "LRW"; + this.subtype.add("Shapeshifter"); + this.power = new MageInt(5); + this.toughness = new MageInt(3); + + // Changeling + this.addAbility(ChangelingAbility.getInstance()); + + // Haste + this.addAbility(HasteAbility.getInstance()); + + // Champion a creature + this.addAbility(new ChampionAbility(this, null); + } + + public ChangelingBerserker(final ChangelingBerserker card) { + super(card); + } + + @Override + public ChangelingBerserker copy() { + return new ChangelingBerserker(this); + } +} diff --git a/Mage.Sets/src/mage/sets/lorwyn/ChangelingTitan.java b/Mage.Sets/src/mage/sets/lorwyn/ChangelingTitan.java new file mode 100644 index 0000000000..c2c4f0d815 --- /dev/null +++ b/Mage.Sets/src/mage/sets/lorwyn/ChangelingTitan.java @@ -0,0 +1,66 @@ +/* + * 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.keyword.ChampionAbility; +import mage.abilities.keyword.ChangelingAbility; +import mage.cards.CardImpl; +import mage.constants.CardType; +import mage.constants.Rarity; + +/** + * + * @author fireshoes + */ +public class ChangelingTitan extends CardImpl { + + public ChangelingTitan(UUID ownerId) { + super(ownerId, 200, "Changeling Titan", Rarity.UNCOMMON, new CardType[]{CardType.CREATURE}, "{4}{G}"); + this.expansionSetCode = "LRW"; + this.subtype.add("Shapeshifter"); + this.power = new MageInt(7); + this.toughness = new MageInt(7); + + // Changeling + this.addAbility(ChangelingAbility.getInstance()); + + // Champion a creature + this.addAbility(new ChampionAbility(this, null); + } + + public ChangelingTitan(final ChangelingTitan card) { + super(card); + } + + @Override + public ChangelingTitan copy() { + return new ChangelingTitan(this); + } +} diff --git a/Mage.Sets/src/mage/sets/mirrodin/VorracBattlehorns.java b/Mage.Sets/src/mage/sets/mirrodin/VorracBattlehorns.java index 3323699039..b3033e3265 100644 --- a/Mage.Sets/src/mage/sets/mirrodin/VorracBattlehorns.java +++ b/Mage.Sets/src/mage/sets/mirrodin/VorracBattlehorns.java @@ -63,7 +63,7 @@ public class VorracBattlehorns extends CardImpl { // Equipped creature has trample and can't be blocked by more than one creature. Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(TrampleAbility.getInstance(), AttachmentType.EQUIPMENT)); Effect effect = new CantBeBlockedByMoreThanOneAttachedEffect(AttachmentType.EQUIPMENT, 1); - effect.setText(" and can't be blocked by more than one creature"); + effect.setText("and can't be blocked by more than one creature"); ability.addEffect(effect); this.addAbility(ability);