From 46439e7ffe9897f91a1cca232a528f405a38da34 Mon Sep 17 00:00:00 2001 From: magenoxx Date: Mon, 26 Mar 2012 00:42:04 +0400 Subject: [PATCH] Fixed Oblivion Ring issue (LeavesBattlefieldTriggeredAbility). --- Mage/src/mage/abilities/AbilityImpl.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Mage/src/mage/abilities/AbilityImpl.java b/Mage/src/mage/abilities/AbilityImpl.java index e449db0232..762db65cbb 100644 --- a/Mage/src/mage/abilities/AbilityImpl.java +++ b/Mage/src/mage/abilities/AbilityImpl.java @@ -36,6 +36,7 @@ import mage.Constants.AbilityType; import mage.Constants.EffectType; import mage.Constants.Outcome; import mage.Constants.Zone; +import mage.MageObject; import mage.abilities.costs.*; import mage.abilities.costs.mana.KickerManaCost; import mage.abilities.costs.mana.ManaCost; @@ -463,6 +464,13 @@ public abstract class AbilityImpl> implements Ability { @Override public boolean isInUseableZone(Game game) { + // try LKI first + MageObject lkiTest = game.getLastKnownInformation(getSourceId(), zone); + if (lkiTest != null) { + return true; + } + + // check against current state Zone test = game.getState().getZone(sourceId); return test != null && zone.match(test); }