There is a Legacy version
here.
Déjà Vu
[two-actions] Spell 1Concentrate Incapacitation Manipulate Mental Source Player Core 2 pg. 244Traditions arcane,
occultDeity BergelmirRange 100 feet;
Targets 1 creature
Saving Throw Will;
Defense Will;
Duration 2 rounds
You loop a thought process in the target's mind, forcing it to repeat a moment's worth of actions. The target must attempt a Will save. If the target fails, whatever actions the target uses on its next turn, it must repeat on its following turn. The actions must be repeated in the same order and as close to the same specifics as possible. For example, if the target makes an attack, it must repeat the attack against the same creature, if possible, and if the target moves, it must move the same distance and direction, if possible, on its next turn.
If the target can't repeat an action, such as Casting a Spell that has been exhausted or needing to target a creature that has died, it can act as it chooses for that action but becomes
stupefied 1 until the end of its turn.