From 987bfb588f227cab5d386796dd472c51c42d2405 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Wed, 13 Mar 2013 17:01:49 +0100 Subject: [PATCH] Improved target handling of Executioners Swing and fixed buf of FrontlineMedic. --- .../sets/gatecrash/ExecutionersSwing.java | 28 ++++++++++++++++++- .../mage/sets/gatecrash/FrontlineMedic.java | 2 +- Mage/src/mage/target/TargetPermanent.java | 2 +- 3 files changed, 29 insertions(+), 3 deletions(-) diff --git a/Mage.Sets/src/mage/sets/gatecrash/ExecutionersSwing.java b/Mage.Sets/src/mage/sets/gatecrash/ExecutionersSwing.java index 31bd6b0781..4889c829fa 100644 --- a/Mage.Sets/src/mage/sets/gatecrash/ExecutionersSwing.java +++ b/Mage.Sets/src/mage/sets/gatecrash/ExecutionersSwing.java @@ -33,6 +33,7 @@ import java.util.UUID; import mage.Constants.CardType; import mage.Constants.Duration; import mage.Constants.Rarity; +import mage.MageObject; import mage.abilities.Ability; import mage.abilities.effects.common.continious.BoostTargetEffect; import mage.cards.CardImpl; @@ -77,6 +78,7 @@ class TargetCreaturePermanentThatDealtDamageThisTurn= remainingTargets) { + return true; + } + } + } + } + } + return false; + } + @Override public Set possibleTargets(UUID sourceId, UUID sourceControllerId, Game game) { Set availablePossibleTargets = super.possibleTargets(sourceId, sourceControllerId, game); @@ -103,7 +129,7 @@ class TargetCreaturePermanentThatDealtDamageThisTurn { this.addAbility(new BattalionAbility(new IndestructibleAllEffect(new FilterControlledCreaturePermanent(), Constants.Duration.EndOfTurn))); // Sacrifice Frontline Medic: Counter target spell with {X} in its mana cost unless its controller pays 3. - Ability ability = new SimpleActivatedAbility(Constants.Zone.BATTLEFIELD, new CounterUnlessPaysEffect(new CounterUnlessPaysEffect(new GenericManaCost(3))), new SacrificeSourceCost()); + Ability ability = new SimpleActivatedAbility(Constants.Zone.BATTLEFIELD, new CounterUnlessPaysEffect(new GenericManaCost(3)), new SacrificeSourceCost()); ability.addTarget(new TargetSpell(filter)); this.addAbility(ability); diff --git a/Mage/src/mage/target/TargetPermanent.java b/Mage/src/mage/target/TargetPermanent.java index 237223618d..3658f91fba 100644 --- a/Mage/src/mage/target/TargetPermanent.java +++ b/Mage/src/mage/target/TargetPermanent.java @@ -112,7 +112,7 @@ public class TargetPermanent> extends TargetObject< /** * Checks if there are enough {@link Permanent} that can be chosen. * - * Takes into account notTarget parameter, it case it's true doesn't check for protection, shroud etc. + * Takes into account notTarget parameter, in case it's true doesn't check for protection, shroud etc. * * @param sourceId - the target event source * @param sourceControllerId - controller of the target event source