Some changes to effect handling to fix failing tests.

This commit is contained in:
LevelX2 2015-04-15 15:21:47 +02:00
parent 9aa02f3d6f
commit 77f3035443
10 changed files with 25 additions and 15 deletions

View file

@ -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);