execute at @s[tag=storm] as @n[type=item_display,tag=aj.archer_weapon.root] run function animated_java:archer_weapon/remove/this
execute at @s[tag=storm_weak] as @n[type=item_display,tag=aj.archer_weapon.root] run function animated_java:archer_weapon/remove/this
execute at @s[tag=thundering] as @n[type=item_display,tag=aj.archer_rc_thundering.root] run function animated_java:archer_rc_thundering/remove/this
execute at @s[tag=thundering_weak] as @n[type=item_display,tag=aj.archer_rc_thundering.root] run function animated_java:archer_rc_thundering/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_thundering] run kill @s
execute at @s as @n[type=item_display,tag=archer_rc_regular] run kill @s

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

execute if entity @s[type=item_display,tag=gale] at @s 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 if entity @s[type=item_display,tag=thundering] at @s 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