From 757df393f9ff8390ba251982283f5e14fc213ba2 Mon Sep 17 00:00:00 2001 From: Loki Date: Sun, 18 Dec 2011 18:23:21 +0400 Subject: [PATCH] try to use LKI if source == null --- Mage.Sets/src/mage/sets/mirrodin/SpikeshotGoblin.java | 3 +++ Mage.Sets/src/mage/sets/scarsofmirrodin/SpikeshotElder.java | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Mage.Sets/src/mage/sets/mirrodin/SpikeshotGoblin.java b/Mage.Sets/src/mage/sets/mirrodin/SpikeshotGoblin.java index 120ac4b92df..38bd3e7a2a8 100644 --- a/Mage.Sets/src/mage/sets/mirrodin/SpikeshotGoblin.java +++ b/Mage.Sets/src/mage/sets/mirrodin/SpikeshotGoblin.java @@ -92,6 +92,9 @@ class SpikeshotGoblinEffect extends OneShotEffect { public boolean apply(Game game, Ability source) { Permanent sourcePermanent = game.getPermanent(source.getSourceId()); Permanent permanent = game.getPermanent(source.getFirstTarget()); + if (sourcePermanent == null) { + sourcePermanent = (Permanent) game.getLastKnownInformation(source.getSourceId(), Constants.Zone.BATTLEFIELD); + } if (sourcePermanent != null && permanent != null) { permanent.damage(sourcePermanent.getPower().getValue(), source.getId(), game, true, false); return true; diff --git a/Mage.Sets/src/mage/sets/scarsofmirrodin/SpikeshotElder.java b/Mage.Sets/src/mage/sets/scarsofmirrodin/SpikeshotElder.java index 1bdc0ed0399..7d396cf2d02 100644 --- a/Mage.Sets/src/mage/sets/scarsofmirrodin/SpikeshotElder.java +++ b/Mage.Sets/src/mage/sets/scarsofmirrodin/SpikeshotElder.java @@ -89,6 +89,9 @@ class SpikeshotElderEffect extends OneShotEffect { public boolean apply(Game game, Ability source) { Permanent sourcePermanent = game.getPermanent(source.getSourceId()); Permanent permanent = game.getPermanent(source.getFirstTarget()); + if (sourcePermanent == null) { + sourcePermanent = (Permanent) game.getLastKnownInformation(source.getSourceId(), Constants.Zone.BATTLEFIELD); + } if (sourcePermanent != null && permanent != null) { permanent.damage(sourcePermanent.getPower().getValue(), source.getId(), game, true, false); return true;