world-of-might-and-magic
world-of-might-and-magic copied to clipboard
Picking up next character that can act if character picked by keyboard currently can't
Describe the bug In vanilla when you try to pick character with 1-4 buttons and this character cannot currently act - game tries to cycle through characters and pick different one. OE does not implement this behavior - nothing happens when you try to pick such character.
To Reproduce Have one character that cannot act (dead, unconscious or something like this to make reproducing easier) and try to pick it with keyboard.
Expected behavior Vanilla working a little weird - cycling was "remembered" and every time you pick character that cannot act it picks next numbered character (even if he cannot act) starting from last remembered state. OE can modify this behavior and cycle through characters that can definitely act.
This cycling behavior doesn't replicate on my vanilla GOG install.
I'm not sure if we should implement this anyway.
There is some code in Party::switchToNextActiveCharacter()
that handles something similar so it picks the next recovered character along instead of always jumping back to the first.