From 4e3e418524e63ecd6060dfbc914b8d44b329e593 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sun, 30 Jun 2013 22:05:31 +0200 Subject: [PATCH] * Blinding Beam - Fixed second mode where target was missing. --- Mage.Sets/src/mage/sets/elspethvstezzeret/BlindingBeam.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Mage.Sets/src/mage/sets/elspethvstezzeret/BlindingBeam.java b/Mage.Sets/src/mage/sets/elspethvstezzeret/BlindingBeam.java index 48c8445120..7ca028a211 100644 --- a/Mage.Sets/src/mage/sets/elspethvstezzeret/BlindingBeam.java +++ b/Mage.Sets/src/mage/sets/elspethvstezzeret/BlindingBeam.java @@ -46,6 +46,7 @@ import mage.game.events.GameEvent; import mage.game.events.GameEvent.EventType; import mage.game.permanent.Permanent; import mage.players.Player; +import mage.target.TargetPlayer; import mage.target.common.TargetCreaturePermanent; /** @@ -69,6 +70,7 @@ public class BlindingBeam extends CardImpl { // or creatures don't untap during target player's next untap step. Mode mode = new Mode(); mode.getEffects().add(new BlindingBeamEffect()); + mode.getTargets().add(new TargetPlayer(true)); this.getSpellAbility().getModes().addMode(mode); // Entwine {1} @@ -98,7 +100,7 @@ class BlindingBeamEffect extends OneShotEffect { @Override public boolean apply(Game game, Ability source) { - Player player = game.getPlayer(source.getFirstTarget()); + Player player = game.getPlayer(getTargetPointer().getFirst(game, source)); if (player != null) { for (Permanent creature: game.getBattlefield().getAllActivePermanents(new FilterCreaturePermanent(), player.getId(), game)) { game.addEffect(new BlindingBeamEffect2(creature.getId()), source); @@ -155,4 +157,4 @@ class BlindingBeamEffect2 extends ReplacementEffectImpl { return false; } -} \ No newline at end of file +}