diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-05-06 18:51:30 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-16 19:12:55 +0100 |
commit | aebba0da75ef4ace08079a39ebde51234be6fb80 (patch) | |
tree | 03f4549d6d47362070b62e2acda3056a53710833 | |
parent | b6af8b17db4cf325069fd22bb3dbdd607e3754b8 (diff) | |
download | richard-iii-aebba0da75ef4ace08079a39ebde51234be6fb80.tar.gz |
richard: Fix undo when mustering.
-rw-r--r-- | rules.js | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1548,6 +1548,7 @@ states.muster_event = { } }, area: function (where) { + push_undo(); game.where = where; game.state = 'muster_who'; }, @@ -1571,6 +1572,7 @@ states.muster_who = { gen_action(view, 'block', b); }, block: function (who) { + push_undo(); game.who = who; game.state = 'muster_move_1'; }, @@ -1596,10 +1598,6 @@ states.muster_move_1 = { gen_action(view, 'area', to); } }, - block: function () { - game.who = null; - game.state = 'muster_who'; - }, area: function (to) { let from = game.location[game.who]; log_move_start(from); @@ -1614,6 +1612,7 @@ states.muster_move_1 = { game.state = 'muster_move_2'; } }, + block: pop_undo, undo: pop_undo, } |