scoreboard players reset @s polytimer
execute as @s[tag=polyd] run gamemode survival
effect give @s[tag=polyd] minecraft:invisibility 10 0 true
kill @e[tag=poly_sheep,limit=1,sort=nearest]

tag @s remove special
tag @s remove polyd
execute as @s run damage @s 999999 magic