#cooldown
scoreboard players remove @s shift_special_1 1
scoreboard players set @s shift_special_2 10
execute as @s[tag=!upgrade_5] run function main:settings/stats/cooldown/calculation {"cooldown":3,"type":shift}
execute as @s[tag=upgrade_9] run scoreboard players remove @s rc_cooldown_s 1
execute as @s[tag=upgrade_9] run scoreboard players set @s attack_speed 0
scoreboard players add @s health_absorption 50

#effect
# scoreboard players set @s rc_duration_t 100

#vfx
scoreboard players set @s shift_duration_t 60
execute if score @s in_air matches ..0 run function main:mechanics/movement/direction {"vertical":"~ 0","power":15000,"angle":"0"}
execute if score @s in_air matches 1.. run function main:mechanics/movement/direction {"vertical":"~ 0","power":7500,"angle":"0"}
execute at @s run particle large_smoke ~ ~ ~ 0.5 0.5 0.5 1 15 force
execute at @s run playsound entity.ender_dragon.flap master @a ~ ~ ~ 10 1

execute at @s anchored eyes run function main:mechanics/particles/start {"start":"^ ^ ^","id":id1,"character":gunner,"type":shift,"transformation":",transformation:[4.0000f,0.0000f,0.0000f,0.0000f,0.0000f,0.0135f,0.1000f,-1.0000f,0.0000f,-4.0000f,0.0003f,0.0000f,0.0000f,0.0000f,0.0000f,1.0000f]","frames":6}

execute if score @s[tag=upgrade_5,scores={shift_cooldown_s=..0}] shift_special_1 matches ..1 run function main:settings/stats/cooldown/calculation {"cooldown":3,"type":shift}