- if ((((game.comhere || game.ishere) && !game.justin) || game.skill == SKILL_EMERITUS) && torps_ok) movcom();
- if (game.nenhere==0 || (game.nenhere==1 && iqhere && !iqengry)) return;
+
+ /* commanders get a chance to tac-move towards you */
+ if ((((game.comhere || game.ishere) && !game.justin) || game.skill == SKILL_EMERITUS) && torps_ok)
+ moveklings();
+
+ /* if no enemies remain after movement, we're done */
+ if (game.nenhere==0 || (game.nenhere==1 && iqhere && !iqengry))
+ return;
+
+ /* set up partial hits if attack happens during shield status change */