From a8217d42830a75151686701cd306072bc687e532 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Tue, 10 Dec 2024 22:25:55 +0000 Subject: Fix typo --- rules.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index bc68c47..8b8dce8 100644 --- a/rules.js +++ b/rules.js @@ -5147,24 +5147,28 @@ function vm_remove_all_infl() { function vm_do_remove_all_infl(space) { push_undo() - + let starting_control = check_control(space) if (game.remove_opponent_infl === true) { if (game.active === COM) { - log(`Removed all Democratic SP from %${space}.`) game.demInfl[space] = 0 + let end_control = check_control(space) + log(`Removed all Democratic SP from %${space}${get_icons(starting_control, end_control)}`) } else { - log(`Removed all Communist SP from %${space}.`) game.comInfl[space] = 0 + let end_control = check_control(space) + log(`Removed all Communist SP from %${space}${get_icons(starting_control, end_control)}`) } check_tyrant() } else { if (game.active === COM) { - log(`Removed all Communist SP from %${space}.`) game.comInfl[space] = 0 + let end_control = check_control(space) + log(`Removed all Communist SP from %${space}${get_icons(starting_control, end_control)}`) } else { - log(`Removed all Democratic SP from %${space}.`) game.demInfl[space] = 0 + let end_control = check_control(space) + log(`Removed all Democratic SP from %${space}${get_icons(starting_control, end_control)}`) } check_tyrant() } -- cgit v1.2.3