Ahh, I see. So make change the next statement to `if (!doAutoAttack() && !world.model.uiSelections.isInCombat)` and change the return value of `doAutoAttack()` to boolean? It looks like this problem can only happen if you have confirm enabled, I guess that's how I missed it.