execute as @a[tag=polyd] at @s run spectate @n[tag=poly_sheep]
execute as @a[scores={polytimer=1..}] run scoreboard players remove @s polytimer 1
execute as @a[scores={polytimer=0}] at @s run function survivalplus:tools/poly/poly_end
execute as @a[tag=polyd] at @s unless entity @e[tag=poly_sheep,distance=..1] run function survivalplus:tools/poly/poly_kill