* Reworked/Cleaned card movement handling.

This commit is contained in:
LevelX2 2015-10-11 03:52:38 +02:00
parent 0f15f4a808
commit 8b8097878c
54 changed files with 714 additions and 687 deletions

View file

@ -104,12 +104,15 @@ public class StackAbility extends StackObjImpl implements Ability {
@Override
public boolean resolve(Game game) {
if (ability.getTargets().stillLegal(ability, game)) {
return ability.resolve(game);
boolean result = ability.resolve(game);
game.getStack().remove(this);
return result;
}
if (!game.isSimulation()) {
game.informPlayers("Ability has been fizzled: " + getRule());
}
counter(null, game);
game.getStack().remove(this);
return false;
}