It's unclear when/how often an affected creature picks a new target during the spell enemies abound
...On a failed save, the target loses the ability to distinguish friend from foe, regarding all creatures it can see as enemies until the spell ends. Each time the target takes damage, it can repeat the saving throw, ending the effect on itself on a success. Whenever the affected creature chooses another creature as a target, it must choose the target at random from among the creatures it can see within range of the attack, spell, or other ability it’s using. (XGE, p 155)
So, let's say I cast this spell on an enemy and they fail their save. The DM rolls randomly for a target in range. If the caster ends up attacking and killing one of their previous allies, they must roll randomly again to determine their next target. Awesome!
- But, what if they randomly end up attacking me/a member of the party? Will they just keep going until the target is dead (if so, seems like the variance for this spell's outcome is really high!)?
- What happens if they can no longer "see" their target (like the enemy chosen becomes obscured in a fog cloud or Shroud of Moil, or just hides)?
- What happens if they can no longer "see" any targets (the affected creature ends up inside Hunger of Hadar or a Darkness spell)?
Ideally I want to try and figure out the best way to cast this spell and then, once it's cast, to try and make it's effects as helpful/not harmful to the party as possible.
For example, if I hit a creature with Enemies Abound but then it picks a party member as it's target, I could tell the other character "Just hide and he'll attack someone else!!"