#upgrade 4
execute if entity @a[tag=upgrade_4] if score .gauge gunner matches 5.. if entity @s[scores={hit_indicator=1}] run function main:characters/gunner/upgrades/id/4/activation

#upgrade 7
execute if entity @a[tag=upgrade_7] if entity @s[scores={health=..0}] if score .overclock gunner matches 1.. if score .upgrade_7 gunner matches ..5 run function main:characters/gunner/upgrades/id/7/kill

#upgrade 9
execute if entity @a[tag=upgrade_9] as @s[scores={hit_indicator=2}] run function main:characters/gunner/upgrades/id/9/activation

#gauge
$execute if entity @s[scores={hit_indicator=12}] as @a[tag=$(character)] if score .overclock gunner matches ..0 if score .gauge_cd gunner matches ..0 run function main:characters/gunner/weapon/id1/gauge

#combo
#hits
$execute if entity @s[scores={health=1..}] as @a[tag=$(character)] run scoreboard players add .hits combo 1
$execute if entity @s[scores={health=1..}] as @a[scores={in_air=1..},tag=$(character)] run scoreboard players add .hits_midair combo 1
$execute if entity @s[scores={hit_indicator=0..9}] as @a[scores={player_id=1,combo_reset=..0},tag=$(character)] run scoreboard players add .hits_skills combo 1
$execute if entity @s[scores={in_air=4..}] as @a[tag=$(character)] run function main:mechanics/combo/actions/airshot