For those having issues with ranged AI entering melee combat I have to point out that this is an AI logic design choice on the part of whoever coded the AI, likely to get around "blocked" line of sight issues. This was actually a huge issue in DA:O as well, and the modding community spent a LOT of time working out a "fix" for it. (go to nexus mods and dig around in the tactics AI improvements to find a history on this exact issue).
Basically it comes down to 2 problems as I see it:
1. Players giving ranged characters abilites that have a short range and then failing to realize that the AI is moving in close to the enemies to use the "Drop Back" ability.. and/or the AI moving in to use the ability, but then not having enough stamina to pull it off once it arrives in close range. Solution.. turn off any "close range" abilities on your ranged characters.
2. The AI is programmed with an "Approach Target" system to break LOS issues. So when AI (A) tries to attack enemy (
and object © is blocking the shot then the AI (A) rather then "Strafing" as a player would instead "Approaches" the target. This was a design choice plain and simple to avoid "Stupid" AI that would constantly strafe left/right to hit a target it can't see rather then walk through a doorway. Unless the developers were willing to program hundreds of "area" specific "use case" AI code, it just makes sense to use one catch all system for LOS issue's.. and that system is "Close with target until you can attack it". Every AI in the game uses the same system.
Anyway.. I don't anticipate any changes in the AI system will be coming in a bug/fix or patch unless it pertains to things they should be doing but they aren't. For instance the bugs of:
1. AI refusing to drink potions even though you have 8 and have set them to use potions down to 0. (yes, i have video of my AI just standing there with 5% HP and 8 potions... not drinking them.. so sad...
2. AI spamming tuant into nothingness... ohh you tanks who love shouting at mountains.. WHY YOU DO THAT!!
3. AI set to "Defend" who seem to think that means stand around me while I get pincushioned by that archer.. you know, because the archer is more then X distance away and if I leave you to get its aggro I won't be "defending" you anymore.... lame