Fix illegal command error when fighting.