mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 22:12:03 -08:00
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:
commit
06cc8d8771
5 changed files with 264 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue