execute if score .shift_duration brawler matches 1.. run scoreboard players remove .shift_duration brawler 1

execute at @s if score .shift_duration brawler matches 1.. unless block ^0.8 ^0.5 ^ air run function main:characters/brawler/shift/id1/wall
execute at @s if score .shift_duration brawler matches 1.. unless block ^-0.8 ^0.5 ^ air run function main:characters/brawler/shift/id1/wall
execute at @s if score .shift_duration brawler matches 1.. unless block ^ ^0.5 ^0.8 air run function main:characters/brawler/shift/id1/wall
execute at @s if score .shift_duration brawler matches 1.. unless block ^ ^0.5 ^-0.8 air run function main:characters/brawler/shift/id1/wall

#particles
execute as @s[scores={forward=1..,backward=..0}] anchored eyes at @s positioned ^ ^ ^ rotated ~ ~ as @e[type=item_display,tag=aj.brawler_shift.root] run tp @s ^-0.4 ^-1 ^1.5 ~ ~

execute as @s[scores={backward=..0,forward=..0}] anchored eyes at @s positioned ^ ^ ^ rotated ~ ~ as @e[type=item_display,tag=aj.brawler_shift.root] run tp @s ^-0.4 ^-1 ^1 ~ ~

execute as @s[scores={backward=1..,forward=1..}] anchored eyes at @s positioned ^ ^ ^ rotated ~ ~ as @e[type=item_display,tag=aj.brawler_shift.root] run tp @s ^-0.4 ^-1 ^1 ~ ~

execute as @s[scores={backward=1..,forward=..0}] anchored eyes at @s positioned ^ ^ ^ rotated ~ ~ as @e[type=item_display,tag=aj.brawler_shift.root] run tp @s ^-0.4 ^-1 ^0.5 ~ ~

execute at @s[tag=upgrade_6] run function main:characters/brawler/shift/id1/upgrade_6/tick