summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-10-14 12:37:15 +0200
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-10-14 12:37:15 +0200
commit03527cc8ab95931ba6204b54ae3172bd7e008b63 (patch)
tree868c0271cba5490332627b444362c6f5cddf63d6
parent097e1c82d653de44702e924c71cd354de3fdb07a (diff)
downloadalgeria-03527cc8ab95931ba6204b54ae3172bd7e008b63.tar.gz
fix: FLN reinforcement undo doesn't work
-rw-r--r--rules.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index d663ffb..b7cdd77 100644
--- a/rules.js
+++ b/rules.js
@@ -1999,27 +1999,33 @@ states.fln_reinforcement = {
build_cadre() {
let unit = pop_selected()
let loc = unit_loc(unit)
+ push_undo()
build_fln_unit(CADRE, loc)
},
build_band() {
let unit = pop_selected()
let loc = unit_loc(unit)
+ push_undo()
build_fln_unit(BAND, loc)
},
convert_front_to_cadre() {
let unit = pop_selected()
+ push_undo()
convert_fln_unit(unit, CADRE)
},
convert_cadre_to_front() {
let unit = pop_selected()
+ push_undo()
convert_fln_unit(unit, FRONT)
},
convert_cadre_to_band() {
let unit = pop_selected()
+ push_undo()
convert_fln_unit(unit, BAND)
},
convert_band_to_failek() {
let unit = pop_selected()
+ push_undo()
convert_fln_unit(unit, FAILEK)
},
end_reinforcement() {