Fixed LKI and change controller interaction. +1 test passed.

This commit is contained in:
magenoxx 2012-06-03 17:33:04 +04:00
parent cf8fa2b773
commit 27d4997545
4 changed files with 15 additions and 4 deletions

View file

@ -44,6 +44,7 @@ import mage.cards.Card;
import mage.choices.Choice;
import mage.choices.Choices;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.target.Target;
import mage.target.Targets;
import org.apache.log4j.Logger;
@ -458,8 +459,9 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
@Override
public boolean isInUseableZone(Game game, boolean checkLKI) {
// try LKI first
Permanent permanent = game.getPermanent(getSourceId());
// try LKI first
if (checkLKI) {
MageObject lkiTest = game.getLastKnownInformation(getSourceId(), zone);
if (lkiTest != null) {