execute if entity @a[tag=upgrade_6] run return run function main:characters/engineer/upgrades/id/6/activation
execute if score @s health < @s health_max run function main:mechanics/combo/actions/characters/engineer/sentry_heal
execute on vehicle if entity @a[tag=upgrade_8] run scoreboard players set @s engineer 80
scoreboard players set .heal engineer 50
execute if entity @a[tag=upgrade_7] run function main:characters/engineer/upgrades/id/7/calc_heal

scoreboard players operation .heal engineer *= @s health_max
scoreboard players operation .heal engineer /= .100 number

scoreboard players operation @s health += .heal engineer
playsound atmos:mechanical_1 master @a ~ ~ ~ 10 0.75
particle crit ~ ~1 ~ 0.5 0.5 0.5 0.1 10 normal

scoreboard players set .sentry_particles engineer 10
execute at @s positioned ~ ~0.5 ~ run function main:particles/system/emitter {"id":"300","particle":"003","life":10,"cooldown":1}