execute if score .shift_cd sniper matches ..0 if score .shift_duration sniper matches 1.. at @s run return run function main:characters/sniper/shift/id1/teleport

execute at @s[scores={shift_cooldown_s=..0}] run function main:characters/sniper/shift/id1/activation

scoreboard players set .shift_cd sniper 5