From 116100461f2b6df13223046d70ef50d7c2836301 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Tue, 30 Sep 2014 13:01:00 +0200 Subject: [PATCH] * Mindswipe - Fixed that it didn't deal damage, if the X cost was paid by target spell controller. --- Mage.Sets/src/mage/sets/khansoftarkir/Mindswipe.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Mage.Sets/src/mage/sets/khansoftarkir/Mindswipe.java b/Mage.Sets/src/mage/sets/khansoftarkir/Mindswipe.java index 49f5ecfd922..24d7e944825 100644 --- a/Mage.Sets/src/mage/sets/khansoftarkir/Mindswipe.java +++ b/Mage.Sets/src/mage/sets/khansoftarkir/Mindswipe.java @@ -95,16 +95,19 @@ class MindswipeEffect extends OneShotEffect { public boolean apply(Game game, Ability source) { Player controller = game.getPlayer(source.getControllerId()); if (controller != null) { - MageObject object = game.getLastKnownInformation(getTargetPointer().getFirst(game, source), Zone.STACK); - if (object instanceof Spell) { + MageObject object = game.getStack().getSpell(getTargetPointer().getFirst(game, source)); + if (object == null) { + object = game.getLastKnownInformation(getTargetPointer().getFirst(game, source), Zone.STACK); + } + if (object != null && object instanceof Spell) { Spell spell = (Spell) object; Player spellController = game.getPlayer(spell.getControllerId()); if (spellController != null) { int damage = new ManacostVariableValue().calculate(game, source, this); spellController.damage(damage, source.getSourceId(), game, false, true); } + return true; } - return true; } return false; }