function main:settings/stats/cooldown/calculation {"cooldown":3,"type":shift}
scoreboard players set @s attack_speed 0
function main:characters/brawler/combust
# scoreboard players set .rc_movement brawler 0

tag @s remove brawler_shift
scoreboard players set .shift_duration brawler 10
function main:mechanics/effects/screenshake/start {duration:10,strength:150}

# execute if entity @s[scores={in_air=..0}] run function main:mechanics/knockback {"power":30000,"angle":"~ -5"}
# execute if entity @s[scores={in_air=1..}] run function main:mechanics/knockback {"power":25000,"angle":"~ 0"}

execute as @s[tag=!upgrade_6] run function main:mechanics/damage/enemy/calculation {"id":id1,"character":brawler,"type":"shift","damage":125,"stat":"attack","local_bonus":0,"indicator":2}

execute as @s[tag=upgrade_6] if score .upgrade_6 brawler matches ..0 run function main:mechanics/damage/enemy/calculation {"id":id1,"character":brawler,"type":"shift","damage":125,"stat":"attack","local_bonus":0,"indicator":2}

execute as @s[tag=upgrade_6] if score .upgrade_6 brawler matches 1.. run function main:mechanics/damage/enemy/calculation {"id":id1,"character":brawler,"type":"shift","damage":175,"stat":"attack","local_bonus":0,"indicator":2}

#vfx
execute at @s rotated ~90 ~ run function animated_java:brawler_shift/summon with storage aj:temp
execute as @e[type=item_display,tag=aj.brawler_shift.root] run function animated_java:brawler_shift/animations/attack/play
execute as @e[type=item_display,tag=aj.brawler_shift.root,tag=newborn] run tag @s remove newborn
execute at @s run playsound entity.ghast.shoot master @a ~ ~ ~ 3 0.75
execute at @s run playsound entity.firework_rocket.launch master @a ~ ~ ~ 3 0.75
execute at @s run playsound item.wolf_armor.crack master @a ~ ~ ~ 10 1

# execute at @s anchored eyes positioned ^ ^ ^ run function main:mechanics/particles/start {"start":"^ ^ ^","id":id1,"character":brawler,"type":shift,"transformation":",transformation:[-3.0000f,0.0000f,0.0000f,0.0000f,-0.0000f,-3.0000f,0.0000f,0.5000f,0.0000f,0.0000f,0.1000f,0.0000f,0.0000f,0.0000f,0.0000f,1.0000f]","frames":6}

execute at @s positioned ~-2 ~-2 ~-2 as @e[type=#main:enemies,tag=enemy,dx=3,dy=3,dz=3] run function main:characters/brawler/shift/id1/uppercut
scoreboard players set .upgrade_6 brawler 0