scoreboard players set .rc_animation engineer 0
scoreboard players set .shift_animation engineer 0
scoreboard players set .q_animation engineer 0

scoreboard players set .weapon_animation engineer 17
function main:mechanics/animation/start {"frames":99,"start":"1"}

# execute positioned ^ ^ ^1 run function main:characters/engineer/weapon/id1/particles

scoreboard players add @s[scores={rc_duration_t=..0}] weapon_combo 1

#1
execute as @s[tag=upgrade_1,scores={weapon_combo=1,attack_speed=..0}] run function main:characters/engineer/upgrades/id/1/activation

execute as @s[tag=!upgrade_1,scores={weapon_combo=1,attack_speed=..0}] run function main:characters/engineer/weapon/id1/1 with storage player_data 1

scoreboard players set @s[scores={weapon_combo=1..}] weapon_combo 0
execute as @e[type=#main:enemies,tag=enemy,tag=engineer_rc_target] run tag @s remove engineer_rc_target