tag @e[type=#main:enemies,tag=enemy,tag=sorcerer_weapon_hit] remove sorcerer_weapon_hit
scoreboard players add @s weapon_combo 1

#1
execute as @s[tag=!upgrade_2,scores={weapon_combo=1,attack_speed=..0}] run function main:characters/sorcerer/weapon/id1/1
execute as @s[tag=!upgrade_2,scores={weapon_combo=2,attack_speed=..0}] run function main:characters/sorcerer/weapon/id1/2

scoreboard players set @s[scores={weapon_combo=2..}] weapon_combo 0