Merge pull request #514 from magefree/feature/SacredGround

Sacred Ground implemented.  Re-ordered logic in GameImpl to handle simultaneous events before removing top of the stack.
This commit is contained in:
LevelX2 2014-08-16 10:00:27 +02:00
commit 06cc8d8771
5 changed files with 264 additions and 1 deletions

View file

@ -1113,13 +1113,13 @@ public abstract class GameImpl implements Game, Serializable {
top.resolve(this);
} finally {
if (top != null) {
state.getStack().remove(top);
if (!getTurn().isEndTurnRequested()) {
while (state.hasSimultaneousEvents()) {
state.handleSimultaneousEvent(this);
checkTriggered();
}
}
state.getStack().remove(top);
}
}
}