Repulsion

An invisible, mobile field surrounds you and prevents creatures' movement in a 40-foot radius. Any creature within or entering the field must attempt a Will save. If it fails, it becomes unable to move for the duration of the spell or until it leaves the area. Repelled creatures' actions are not otherwise restricted. They can fight other creatures and can cast spells and attack you with ranged weapons. If you move closer to an affected creature, nothing happens. The creature is not forced back. The creature is free to make melee attacks against you if you come within reach.

Repulsion — Spells — Pathfinder: WotR Database