execute at @s as @e[type=#main:enemies,tag=enemy,distance=..3] run function main:mechanics/damage/enemy/deal_damage with storage minecraft:q_damage knight.id1
particle explosion_emitter ~ ~ ~ 0 0 0 1 1 force
playsound entity.dragon_fireball.explode master @a ~ ~ ~ 10 1
tag @s add knight_q_hit

execute as @e[type=block_display,tag=id1_knight_q_projectile] on passengers run function animated_java:knight_q/remove/this
execute as @e[type=block_display,tag=id1_knight_q_projectile] run kill @s