From 73d54fb156f467762cf970de41b5e4ad32eb00fd Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Thu, 5 May 2016 13:46:54 +0200 Subject: [PATCH] * Spitemare - Fixed that no damage was dealt to creatures. --- Mage.Sets/src/mage/sets/eventide/Spitemare.java | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/Mage.Sets/src/mage/sets/eventide/Spitemare.java b/Mage.Sets/src/mage/sets/eventide/Spitemare.java index 3d13f19baf..594c763f1e 100644 --- a/Mage.Sets/src/mage/sets/eventide/Spitemare.java +++ b/Mage.Sets/src/mage/sets/eventide/Spitemare.java @@ -40,6 +40,7 @@ import mage.constants.Zone; import mage.game.Game; import mage.game.events.GameEvent; import mage.game.events.GameEvent.EventType; +import mage.game.permanent.Permanent; import mage.players.Player; import mage.target.common.TargetCreatureOrPlayer; @@ -127,10 +128,16 @@ class SpitemareEffect extends OneShotEffect { @Override public boolean apply(Game game, Ability source) { - Player target = game.getPlayer(source.getFirstTarget()); - if (target != null) { - target.damage((Integer) this.getValue("damageAmount"), source.getSourceId(), game, false, true); + Player player = game.getPlayer(source.getFirstTarget()); + if (player != null) { + player.damage((Integer) this.getValue("damageAmount"), source.getSourceId(), game, false, true); + return true; } - return true; + Permanent permanent = game.getPermanent(source.getFirstTarget()); + if (permanent != null) { + permanent.damage((Integer) this.getValue("damageAmount"), source.getSourceId(), game, false, true); + return true; + } + return false; } -} \ No newline at end of file +}