mirror of
https://github.com/magefree/mage.git
synced 2026-01-18 09:19:56 -08:00
Fixed LKI and change controller interaction. +1 test passed.
This commit is contained in:
parent
cf8fa2b773
commit
27d4997545
4 changed files with 15 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue