execute as @n[type=item_display,tag=id1_archer_rc_arrow] run function main:characters/archer/rc/id1/projectile_hit_1

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

execute unless entity @n[type=item_display,tag=id1_archer_rc_arrow,tag=thundering] at @s[tag=archer_upgrade_4] run function main:characters/archer/upgrades/id/4/hit

# execute at @s as @n[type=item_display,tag=aj.archer_weapon.root] run function animated_java:archer_weapon/remove/this
# execute at @s as @n[type=item_display,tag=archer_rc_gale] run kill @s
# execute at @s as @n[type=item_display,tag=archer_rc_regular] run kill @s

# execute at @s if entity @n[type=item_display,tag=storm] run function main:characters/archer/q/id1/storm/hit {"duration":120}
# execute at @s if entity @n[type=item_display,tag=storm_weak] run function main:characters/archer/q/id1/storm/hit {"duration":60}

# execute at @s if entity @n[type=item_display,tag=gale] run function main:characters/archer/q/id1/gale/hit
# execute at @s if entity @n[type=item_display,tag=gale_weak] run function main:characters/archer/q/id1/gale/hit

# execute at @s if entity @n[type=item_display,tag=thundering] run function main:characters/archer/q/id1/thundering/hit
# execute at @s if entity @n[type=item_display,tag=thundering_weak] run function main:characters/archer/q/id1/thundering/hit

# execute unless entity @n[type=item_display,tag=gale] unless entity @n[type=item_display,tag=gale_weak] run function main:mechanics/damage/enemy/deal_damage with storage minecraft:rc_damage archer.id1

