This script prevents your heroes or your enemies from choosing a target that is still afflicted by a Blocked Target alias Untargetable State.
Set the value of the TARGET_STATE Constant found in the KBlockStates module to your Untargetable State ID.
Available States:
Traditional Block Target or Untargetable State
No Attack State - Simple Attacks Get Blocked! :S
No Healing State - Healing Skills Get Blocked! :S
Don't forget to ask Sylvia about the "Bad States" whenever you see her!
Other Notes
This scriptlet seems to work with the default battle system so feel free to try it in your game project.
I have not tested it while using any other battle system.
The only reason why I came up with this idea was because Hime's script for RM VX Ace had a weird bug that has remained untouched ever since 2015...