function main:mechanics/damage/enemy/deal_damage with storage minecraft:weapon_damage archer.id1

execute as @a[tag=upgrade_9] unless score .upgrade_9_cooldown archer matches 1.. at @s run function main:characters/archer/upgrades/id/9/arrows/random