tag @s add sniper_scoped_hit

execute if entity @s[tag=sniper_q_interaction] run function main:characters/sniper/q/id1/kill

#deal damage based on weapon
execute if entity @a[tag=sniper] as @s[type=#main:enemies,tag=enemy,tag=sniper_scoped_hit] at @s run function main:mechanics/damage/enemy/deal_damage with storage minecraft:weapon_damage sniper.id1