I think its more about general AI desisions for battle then for shamans (ranged advantage/or not).
While I stormed big goblin city (with 47 tiny bastards inside), 4 shamans was very agressive – they moved forward to constanty cast on my guys even chase them to have them in spell range.