* Howling Mine - Fixed that it did throw an exception if Howling Mine has left the battlefield before its triggered ability resolved.

This commit is contained in:
LevelX2 2015-10-31 11:34:58 +01:00
parent e88c60eb85
commit c1d6703e71

View file

@ -25,7 +25,6 @@
* authors and should not be interpreted as representing official policies, either expressed * authors and should not be interpreted as representing official policies, either expressed
* or implied, of BetaSteward_at_googlemail.com. * or implied, of BetaSteward_at_googlemail.com.
*/ */
package mage.sets.magic2010; package mage.sets.magic2010;
import java.util.UUID; import java.util.UUID;
@ -38,6 +37,7 @@ import mage.constants.Zone;
import mage.game.Game; import mage.game.Game;
import mage.game.events.GameEvent; import mage.game.events.GameEvent;
import mage.game.events.GameEvent.EventType; import mage.game.events.GameEvent.EventType;
import mage.game.permanent.Permanent;
import mage.target.targetpointer.FixedTarget; import mage.target.targetpointer.FixedTarget;
/** /**
@ -90,7 +90,8 @@ class HowlingMineAbility extends TriggeredAbilityImpl {
@Override @Override
public boolean checkInterveningIfClause(Game game) { public boolean checkInterveningIfClause(Game game) {
return !game.getPermanent(this.sourceId).isTapped(); Permanent source = game.getPermanentOrLKIBattlefield(this.sourceId);
return source != null && !source.isTapped();
} }
@Override @Override