mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 20:29:19 -08:00
Various fixed. +3 tests passed.
This commit is contained in:
parent
c761c62a3e
commit
a47b8c25df
17 changed files with 156 additions and 96 deletions
|
|
@ -458,12 +458,14 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean isInUseableZone(Game game) {
|
||||
public boolean isInUseableZone(Game game, boolean checkLKI) {
|
||||
// try LKI first
|
||||
|
||||
MageObject lkiTest = game.getLastKnownInformation(getSourceId(), zone);
|
||||
if (lkiTest != null) {
|
||||
return true;
|
||||
if (checkLKI) {
|
||||
MageObject lkiTest = game.getLastKnownInformation(getSourceId(), zone);
|
||||
if (lkiTest != null) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// check against current state
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue