From f13c81398d481caef3cfb77d91ae7b887baaa4a5 Mon Sep 17 00:00:00 2001 From: Loki Date: Sun, 24 Jul 2011 00:29:44 +0300 Subject: [PATCH] 2 WWK --- Mage.Client/plugins/mage-card-plugin.jar | Bin 318604 -> 318581 bytes .../mage/sets/worldwake/AmuletOfVigor.java | 102 ++++++++++++++++++ .../src/mage/sets/worldwake/Kitesail.java | 70 ++++++++++++ .../effects/common/UntapTargetEffect.java | 2 +- 4 files changed, 173 insertions(+), 1 deletion(-) create mode 100644 Mage.Sets/src/mage/sets/worldwake/AmuletOfVigor.java create mode 100644 Mage.Sets/src/mage/sets/worldwake/Kitesail.java diff --git a/Mage.Client/plugins/mage-card-plugin.jar b/Mage.Client/plugins/mage-card-plugin.jar index d46415592f3c759d60bc44ed14e07eadb5ada2e6..21609c7d8d2bed7ea534729642ae6fa2b84b3ef5 100644 GIT binary patch delta 8971 zcmZ`;30#fY`@iSjw|!62z6cR5WGPE3OQd?EP*0ZA4!zRl$V1 z;Qw*(jED}g{el3eQhC%%LY~&BAAQb5b`r3ZCZPfJ`)M?gKHWG6`h1B-Q2l9cB>iqJ z9!#Ga+GTQ#nRA($W-0IX`2nW=kWcQd_Od zB<6XsOcJa7mNiDDJY|Fe#+K4vEPSWg$W%eNnlmfks=yixo(D4WdKU+=?s-@`R;*5jc#DTq#b!B?=$Q(R%0@=TiC*GjIqLV% zMX?*3VO&i^IBKHU2x}fin)ve-P6hvW1ihjp(xZ?M9bd)CThTRImg0zANS~IhSbjCq zr16XO*B}?xnj3*evDUf6D4pfpxfCfeFaPGCa>ls+r8|SI?1hviWXcp8y;i5)Rs7Bh zX|Z$+KHg>xueXy~wH11x^{i8^-GqQAKaj490Q09@@^7`wUSbW6|3H#W0z^ z3d&-#$?~Y0`Q5CI7PHD7YG;jNpHSq=4BiE!`3$Bv3e|9QLZ0jXSNcY=NE9tE68Ym+ zcQmEg*$ZW`q&)nPghlwr8`-kfU+(CGn3}HhjaU^9rb=C=E;y-@(A`T~H zt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SBkjo?`N{JIxDu7K``eb&lHiY9h&I7-kzpDm!bbMs1l z&`wv4_86|VweS9t;UgKWGJ)wQO+Nm`Zq8%boeX>IS1w!d@Uk*=JIe;Xo^h)A_g|22 zca`D&d|K9!xsnNfFEwJAAw>;w{<|#NcsyuWK%2p^tF$u4o=^|>u0Z9Pfp!IM?-|q& zWA)%eG4$IFbMnIxyhir<8%=w8($L}@Tfn6ai1%b9=4lFQ(8iRa%hT?aHN1=Xr$%%6 z%5d3T)|p`qj+^_TjP6HEnOo2QPUH$H!Rotg&U_i8bDX(+MR>A-b*i-x@n=ru2@H7} z%zcXtG}8fUxYxqv$GMv46ve0+2O3ciwWf)k@bQtSW4w`j-~Q8owa-FG(tag2q4_yF z7fU{DVi#)fP5$4jDZ~pQEurupn}WpB3lC?ax165J-E3E+-a>1l^~?NRP}@Rl@jL8XVMhyUiWrLg zeN2gjA@^w=)81VKEoECc`m diff --git a/Mage.Sets/src/mage/sets/worldwake/AmuletOfVigor.java b/Mage.Sets/src/mage/sets/worldwake/AmuletOfVigor.java new file mode 100644 index 0000000000..1b3c97e0fb --- /dev/null +++ b/Mage.Sets/src/mage/sets/worldwake/AmuletOfVigor.java @@ -0,0 +1,102 @@ +/* + * 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.worldwake; + +import java.util.UUID; + +import mage.Constants; +import mage.Constants.CardType; +import mage.Constants.Rarity; +import mage.abilities.TriggeredAbilityImpl; +import mage.abilities.effects.Effect; +import mage.abilities.effects.common.UntapTargetEffect; +import mage.cards.CardImpl; +import mage.game.Game; +import mage.game.events.GameEvent; +import mage.game.events.ZoneChangeEvent; +import mage.game.permanent.Permanent; +import mage.target.targetpointer.FixedTarget; + +/** + * @author Loki + */ +public class AmuletOfVigor extends CardImpl { + + public AmuletOfVigor(UUID ownerId) { + super(ownerId, 121, "Amulet of Vigor", Rarity.RARE, new CardType[]{CardType.ARTIFACT}, "{1}"); + this.expansionSetCode = "WWK"; + + this.addAbility(new AmuletOfVigorTriggeredAbility()); + } + + public AmuletOfVigor(final AmuletOfVigor card) { + super(card); + } + + @Override + public AmuletOfVigor copy() { + return new AmuletOfVigor(this); + } +} + +class AmuletOfVigorTriggeredAbility extends TriggeredAbilityImpl { + AmuletOfVigorTriggeredAbility() { + super(Constants.Zone.BATTLEFIELD, new UntapTargetEffect()); + } + + AmuletOfVigorTriggeredAbility(final AmuletOfVigorTriggeredAbility ability) { + super(ability); + } + + @Override + public AmuletOfVigorTriggeredAbility copy() { + return new AmuletOfVigorTriggeredAbility(this); + } + + @Override + public boolean checkTrigger(GameEvent event, Game game) { + if (event.getType() == GameEvent.EventType.ZONE_CHANGE) { + ZoneChangeEvent zEvent = (ZoneChangeEvent) event; + if (zEvent.getToZone() == Constants.Zone.BATTLEFIELD) { + Permanent p = game.getPermanent(event.getTargetId()); + if (p != null && p.isTapped()) { + for (Effect effect : this.getEffects()) { + effect.setTargetPointer(new FixedTarget(event.getTargetId())); + } + return true; + } + } + } + return false; + } + + @Override + public String getRule() { + return "Whenever a permanent enters the battlefield tapped and under your control, untap it."; + } +} diff --git a/Mage.Sets/src/mage/sets/worldwake/Kitesail.java b/Mage.Sets/src/mage/sets/worldwake/Kitesail.java new file mode 100644 index 0000000000..7f92e4ab8b --- /dev/null +++ b/Mage.Sets/src/mage/sets/worldwake/Kitesail.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.worldwake; + +import java.util.UUID; + +import mage.Constants; +import mage.Constants.CardType; +import mage.Constants.Rarity; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.costs.mana.GenericManaCost; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.continious.BoostEquippedEffect; +import mage.abilities.effects.common.continious.GainAbilityAttachedEffect; +import mage.abilities.keyword.EquipAbility; +import mage.abilities.keyword.FlyingAbility; +import mage.abilities.keyword.LifelinkAbility; +import mage.abilities.keyword.TrampleAbility; +import mage.cards.CardImpl; + +/** + * + * @author Loki + */ +public class Kitesail extends CardImpl { + + public Kitesail(UUID ownerId) { + super(ownerId, 126, "Kitesail", Rarity.COMMON, new CardType[]{CardType.ARTIFACT}, "{2}"); + this.expansionSetCode = "WWK"; + this.subtype.add("Equipment"); + + this.addAbility(new SimpleStaticAbility(Constants.Zone.BATTLEFIELD, new BoostEquippedEffect(1, 0))); + this.addAbility(new SimpleStaticAbility(Constants.Zone.BATTLEFIELD, new GainAbilityAttachedEffect(FlyingAbility.getInstance(), Constants.AttachmentType.EQUIPMENT))); + this.addAbility(new EquipAbility(Constants.Outcome.AddAbility, new GenericManaCost(2))); + } + + public Kitesail(final Kitesail card) { + super(card); + } + + @Override + public Kitesail copy() { + return new Kitesail(this); + } +} diff --git a/Mage/src/mage/abilities/effects/common/UntapTargetEffect.java b/Mage/src/mage/abilities/effects/common/UntapTargetEffect.java index 2c73cf4a3b..ee1b501878 100644 --- a/Mage/src/mage/abilities/effects/common/UntapTargetEffect.java +++ b/Mage/src/mage/abilities/effects/common/UntapTargetEffect.java @@ -58,7 +58,7 @@ public class UntapTargetEffect extends OneShotEffect { @Override public boolean apply(Game game, Ability source) { - for (UUID target: source.getTargets().get(0).getTargets()) { + for (UUID target: targetPointer.getTargets(source)) { Permanent permanent = game.getPermanent(target); if (permanent != null) { permanent.untap(game);