execute at @s on passengers run kill @s

execute at @s[tag=gale,tag=!gale_triggered] run function main:characters/archer/q/id1/gale/hit
execute at @s[tag=storm,tag=!storm_triggered] run function main:characters/archer/q/id1/storm/hit

# execute at @s[tag=storm] on passengers run function animated_java:archer_weapon/remove/this
# execute at @s[tag=storm_weak] on passengers run function animated_java:archer_weapon/remove/this
# execute at @s[tag=thundering] on passengers run function animated_java:archer_rc_thundering/remove/this
# execute at @s[tag=thundering_weak] on passengers run function animated_java:archer_rc_thundering/remove/this


# 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