mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
Show Undo in prompt if last action is undoable
Clean up unnecessary items from Game menu
This commit is contained in:
@@ -229,6 +229,17 @@ public class MagicStack /* extends MyObservable */ implements Iterable<SpellAbil
|
||||
return this.bResolving;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* undo.
|
||||
* </p>
|
||||
*
|
||||
* @return a boolean.
|
||||
*/
|
||||
public final boolean canUndo() {
|
||||
return !undoStack.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* undo.
|
||||
|
||||
Reference in New Issue
Block a user