mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
Some changes to effect handling to fix failing tests.
This commit is contained in:
parent
9aa02f3d6f
commit
77f3035443
10 changed files with 25 additions and 15 deletions
|
|
@ -901,6 +901,10 @@ public abstract class AbilityImpl implements Ability {
|
|||
}
|
||||
}
|
||||
}
|
||||
// check agains shortLKI for effects that move multiple object at the same time (e.g. destroy all)
|
||||
if (game.getShortLivingLKI(getSourceId(), getZone())) {
|
||||
return true;
|
||||
}
|
||||
// check against current state
|
||||
Zone test = game.getState().getZone(parameterSourceId);
|
||||
return test != null && zone.match(test);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue