diff options
author | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-10-12 15:03:39 +0200 |
---|---|---|
committer | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-10-12 15:03:39 +0200 |
commit | 44fbcc2b23a0f879eed7841a0a06885101af42ba (patch) | |
tree | 7df39b28a825aee008845af7b95e72d564e9d328 /rules.js | |
parent | e7c2b14515a3d8f70c51012db00d58f877d023c4 (diff) | |
download | algeria-44fbcc2b23a0f879eed7841a0a06885101af42ba.tar.gz |
undos
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -2359,6 +2359,7 @@ states.fln_propaganda = { roll() { let unit = pop_selected() let loc = unit_loc(unit) + clear_undo() log(`>by U${unit} in A${loc}`) @@ -2582,6 +2583,7 @@ states.fln_strike = { let front_unit = list[0] let loc = unit_loc(front_unit) let assist = list.length - 1 + clear_undo() if (assist) { log(`>by Front (with ${assist} Cadre) in A${loc}`) @@ -2769,6 +2771,7 @@ states.fln_raid = { let first_unit = list[0] let loc = unit_loc(first_unit) let assist = list.length - 1 + clear_undo() if (assist) { log(`(with ${assist} assist) in A${loc}`) @@ -2877,7 +2880,7 @@ states.fln_harass = { roll() { let list = game.selected game.selected = [] - push_undo() + clear_undo() game.combat = { fln_units: [], gov_units: [], @@ -3374,7 +3377,7 @@ states.gov_intelligence = { game.selected = [] let first_unit = list[0] let loc = unit_loc(first_unit) - push_undo() + clear_undo() log(`>in A${loc}`) @@ -3444,7 +3447,7 @@ states.gov_civil_affairs = { roll() { let unit = pop_selected() let loc = unit_loc(unit) - push_undo() + clear_undo() log(`>in A${loc}`) lower_gov_psl(GOV_CIVIL_AFFAIRS_COST) @@ -3501,7 +3504,7 @@ states.gov_suppression = { roll() { let unit = pop_selected() let loc = unit_loc(unit) - push_undo() + clear_undo() let assist = count_not_neutralized_unit_type_in_loc(EL_X, loc) if (assist) { @@ -3598,7 +3601,7 @@ states.gov_population_resettlement = { roll() { let unit = pop_selected() let loc = unit_loc(unit) - push_undo() + clear_undo() log(`>in A${loc}`) lower_gov_psl(GOV_POPULATION_RESETTLEMENT_COST) |