mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* 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:
parent
e88c60eb85
commit
c1d6703e71
1 changed files with 8 additions and 7 deletions
|
@ -25,7 +25,6 @@
|
|||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
|
||||
package mage.sets.magic2010;
|
||||
|
||||
import java.util.UUID;
|
||||
|
@ -38,6 +37,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.target.targetpointer.FixedTarget;
|
||||
|
||||
/**
|
||||
|
@ -90,7 +90,8 @@ class HowlingMineAbility extends TriggeredAbilityImpl {
|
|||
|
||||
@Override
|
||||
public boolean checkInterveningIfClause(Game game) {
|
||||
return !game.getPermanent(this.sourceId).isTapped();
|
||||
Permanent source = game.getPermanentOrLKIBattlefield(this.sourceId);
|
||||
return source != null && !source.isTapped();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue