There is a Legacy version
here.

Cycle of Retribution
[two-actions] Spell 1This Spell may contain spoilers from the Season of Ghosts Adventure Path
Uncommon Concentrate Manipulate Mental Source Season of Ghosts (Hardcover) pg. 287Access Character follows the ways of Sangpotshi or studies texts and lore containing Sangpotshi secrets
Traditions divine,
occultRange touch;
Targets 1 creature
Defense Will;
Duration sustained up to 1 minute
An understanding of how violence begets more violence fills your target, causing it mental anguish in the form of splitting headaches when it attempts to take violent actions. The target must attempt a Will saving throw, with the following results.
Critical Success The target is unaffected.
Success The next time the target takes a
hostile action, the target takes 1d4 mental damage; the spell’s duration then ends.
Failure The first time in a round when the target takes a hostile action, the target takes 1d4 mental damage.
Critical Failure Each time the target takes a hostile action, the target takes 1d4 mental damage.
Heightened (+1) The mental damage increases by 1d4.