Interesting. If this is generalizable, and not just a fluke, then it is definitely an undesirable emergent behaviour that I'll have to watch out for when I rewrite the combat script in a few months.
Unfortunately, I really can't dedicate the kind of time needed to make anything more than trivial changes to the combat script before then.