mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 14:32:06 -08:00
Fixed that a spell was still shown on the stack if triggered abilities from enters the battlefield event of the cast spell were put on the stack.
This commit is contained in:
parent
aad1a2da89
commit
28d3d72c5d
3 changed files with 15 additions and 11 deletions
|
|
@ -1106,14 +1106,15 @@ public abstract class GameImpl implements Game, Serializable {
|
|||
top = state.getStack().peek();
|
||||
top.resolve(this);
|
||||
} finally {
|
||||
if (top != null) {
|
||||
if (top != null) {
|
||||
state.getStack().remove(top);
|
||||
rememberLKI(top.getSourceId(), Zone.STACK, 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