Scattered Images
4th-level illusion
Casting Time: 1 action
Range: Self
Components: V, S
Duration: 1 minute
When you cast this spell, you create illusory doubles that move when you move but in different directions, distracting and misdirecting your opponents.
When scattered images is cast, 1d4 + 2 images are created. Images behave exactly as those created with mirror image, with the exceptions described here. These images remain in your space, acting as mirror image, until you move or until you choose to have them move by themselves. When you move, your images can stay with you, or they can move an equal distance in any direction you want, at up to your speed. If you have a fly, climb, or burrow speed, your images do as well. You can also cause some images to move away while others remain in your space, or you can remain where you are and cause some or all images to move without you. All images must remain within 150 feet of you. Images that remain in your space can be destroyed by any attack directed against you, as with mirror image. Images away from your space can be destroyed by attacks that could hit them mistakenly, but not by attacks that can only target your space; a melee attack from an attacker adjacent to you can't hit an image that's 20 feet away, for example. If you have three or more duplicates, an attack hits a duplicate if you roll 6 or higher on a d20. With two duplicates, an attack hits a duplicate if you roll 8 or higher, and with one duplicate, you must roll 11 or higher.
While in your space, the images mimic your movements, sounds, and actions perfectly. Images in other squares perform logical alternative actions that you dictate in a completely believable manner. They can appear to make melee attacks (always narrowly missing), cast a spell with no visible effect, drink a potion, and so on. They can't produce illusory spell effects or interact with objects that you don’t have. The figments can move out of your line of sight. Their movement draws opportunity attacks as normal.
Finally, once per spell casting, you can exchange places via teleportation with one figment. You can do this as a bonus action on your turn or as a reaction to a successful attack that hits you. If you swap positions as a reaction, you take no damage and the figment is destroyed instead.
An attacker must be able to see the figments to be fooled. If you are invisible or the attacker is blind, the spell has no effect.