Last actor has infinite turns

Precipitating condition This only happens after one or more actors has died.

Affected actor This only applies to the last actor still alive. By "last actor" is meant the last actor for whom I can select an action, not that only one actor is left standing. It does not matter which actor it is.

What happens All actors further to the left (i.e. the ones whose actions are chosen earlier) are normal. However, when it comes to the last alive actor, an action is selected (attack, defend, use a skill) but it does not move on to execute that choice. Instead I can choose another action, and another, and another and... The only way to break the cycle is to force close the game.
This happens in both play test mode and when the game is launched from the game.exe icon.

What I have done so far
I have disabled all scripts which are new to this project. All remaining scripts are those which I have used for at least one game.
I have checked all control switches and variables to ensure that nothing is being used inadvertently.
I have checked the death state #1 to ensure that nothing unusual has happened there. This involved removing a special note tag relating to actor 5 (who has not yet joined the party).
I have tried this using only Attack to ensure that it is not the use of any particular skill which is interfering.
I have tried changing the formation to ensure that it is not because Actor x is the last in line.

I now cannot think of anything else to try.
Can anyone suggest what else might be the issue?
Thanks
I suspect script incompatibility. Try disabling all battle related scripts.
it has to be caused by a script or a script modification, and that means we'll need at least a list of the scripts you've installed to be even guessing at what might have caused this.
@Poryg and @Andar

The culprit is TheoAllen's 'Turn Fix' - which I thought I'd used before, but when I checked I saw that in fact I hadn't.
Once that is disabled everything reverts to normal.

Thanks for your suggestions.

@TheoAllen Any thoughts on what in your script might be causing this?

Moderator note: Moving this to RGSSx Script Support
It was designed to work with FTB, I used personally on my game which was using FTB and it worked well. I never really test it in default turn based system, so I never expect it, I'm sorry.

Perhaps you might as well as describe the problem I was trying to address with my script, see if you get alternative? I might try to make alternative myself though
@TheoAllen I was using it so that it didn't automaticly go to execute the command on the last actor in case the player wanted to cancel, which is what I thought this script did. But, tbh, I can live without that being fixed.
@Kes : If you use Yanfly scripts still, Yanfly's Battle command list does what you were wanting, by adding that last step so the player can confirm or go back.
@bgillisp Thanks, that will sort me out.

Moderator note: Closing

Original thread: https://forums.rpgmakerweb.com/threads/last-actor-has-infinite-turns.96374/