Follow-up Comment #3, bug #20826 (project wesnoth):
I did not try to reproduce it, because it would take very long for me as a
player to get in this situation again. Therefore, I can't say if the settings
affect this behavior. However, I attached a replay file where the bug occurs.
Follow-up Comment #4, bug #20924 (project wesnoth):
I can confirm the fix in my own case. I confirmed the fix just by copying the
changed lua file over my existing 1.11.4 installation. I can reconfirm with
1.11.5 when it's released if that's preferred, but this can probably be
closed.