From 211af5c9e3d5219bb2ca6d095fc64ec94581dd2f Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Wed, 5 Jun 2013 22:36:30 +0200 Subject: [PATCH] Fixed bug of DamageTargetEffect. --- Mage/src/mage/abilities/effects/common/DamageTargetEffect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage/src/mage/abilities/effects/common/DamageTargetEffect.java b/Mage/src/mage/abilities/effects/common/DamageTargetEffect.java index 42915cad37..d281d7db84 100644 --- a/Mage/src/mage/abilities/effects/common/DamageTargetEffect.java +++ b/Mage/src/mage/abilities/effects/common/DamageTargetEffect.java @@ -123,7 +123,7 @@ public class DamageTargetEffect extends OneShotEffect { if (permanent != null) { permanent.damage(amount.calculate(game, source), source.getSourceId(), game, preventable, false); } else { - Player player = game.getPlayer(targetPointer.getFirst(game, source)); + Player player = game.getPlayer(targetId); if (player != null) { player.damage(amount.calculate(game, source), source.getSourceId(), game, false, preventable); }