Added a new flag to the [General] section LOSBeforeCombat=0/1 The default is 0(off) so your combat(Melee and Casters) won't try and get Line Of Sight on mobs before they start combat. This function, when turned on, checks for MeleeDistance before it engages. This function was added mainly for Melee, when fighting in locations where there are obstacles(Walls, rocks, stumps, etc...) keeps the character from engaging because the mob is not in LOS, but is in MeleeDistance range. This function is executed before the combat routine is entered. Movement is then controlled from within the combat routine.
For non-melee DPS(Casters) this will move them towards the mob until they obtain Line Of Sight, and then stop them there before dropping them into the combat routine. It is strongly recommended that you only use this functionality with MQ2Navigation as your primary movement utility. Only in very specialized situations would you be able to use this functionality without MQ2Navigation, but it is not recommended.
If all your casters are running closer, to a mob than you think they should be, it most likely has to do with framerate(s). The routine will try to obtain LOS for a max of 5 seconds. While your character is moving towards the Mob. LOS is being checked every 1-10th of a second, or basically 10 times a second. When LOS is obtained the character is stopped(/nav stop, /moveto off) at that location. If the 5 seconds expires and your character has still not obtained LOS, then the character is stopped at their current location and the routine exits.