Hey beelzebul0,
I'd like to report this issue to the development team, could you possibly provide some additional detail about what happens in combat with the AI prior to this?
Additionally, do you possibly have a save where this issue can be reproduced?
And lastly, if you have not already, please take a look at our General Troubleshooting Guide, as it may help resolve this issue:
https://esupport.stardock.com/index.php?/default_import/Knowledgebase/Article/View/518/172/general-sorcerer-king-troubleshooting