#cooldown
tag @e[type=#main:enemies,tag=enemy,tag=knight_shift_hit] remove knight_shift_hit
item modify entity @s weapon main:knight/knight_1
execute at @s run function main:mechanics/knockback {"power":25000,"angle":"~ ~"}

function main:settings/stats/cooldown/calculation {"cooldown":4,"type":shift}
function main:mechanics/damage/enemy/calculation {"id":id1,"character":knight,"type":"shift","damage":50,"stat":"attack","local_bonus":0,"indicator":2}
function main:mechanics/healing/shield_calculation {"id":id1,"character":knight,"type":"shift","shield_healing":5,"indicator":0,"stat":"shield_max"}

#playsound
execute at @s run playsound entity.elder_guardian.hurt master @a ~ ~ ~ 3 1
execute at @s run playsound entity.guardian.hurt master @a ~ ~ ~ 3 1

#prevent duration and initial boost from happening again
scoreboard players set @s shift_special_1 10
scoreboard players set @s attack_speed 0