tag @s add filler
scoreboard players add @s projectileOutput 0
scoreboard players add @s petID 0
scoreboard players add @s hitboxRange 0
scoreboard players add @s applyBurn 0
scoreboard players add @s applyBleed 0
scoreboard players add @s applySad 0
scoreboard players add @s applyFragile 0
scoreboard players add @s applyShock 0

scoreboard players operation @s petID = @e[c=1,family=!pet] petID
scoreboard players operation @s stunTime += @e[c=1,family=!pet] stunTime
execute as @e[c=1,family=!pet] at @s run scoreboard players operation @s projectileOutput += @s[tag=trait:megalomaniac] mglstrksbck
execute as @e[c=1,family=!pet] at @s run scoreboard players operation @s[tag=trait:judgement] projectileOutput *= jtMulti slashRes
scoreboard players operation @s projectileOutput = @e[c=1,family=!pet] projectileOutput
scoreboard players operation @s projectileOutput *= @e[c=1,family=!pet] rankMultiplier
scoreboard players operation @s projectileOutput /= @e[c=1,family=!pet] statusFragile