execute as @s at @s unless score @s petID = @e[r=5.5,c=1,type=!projectile:rumianightbird] petID run scoreboard players add @e[r=5.5,rm=0.5,scores={block=0,parry=0},tag=!iframes] stun 5
execute as @s at @s unless score @s petID = @e[r=5.5,c=1,type=!projectile:rumianightbird] petID run scoreboard players remove @e[r=5.5,rm=0.5,scores={block=0,parry=0},tag=!iframes] emotionP 2
execute as @s at @s unless score @s petID = @e[r=5.5,c=1,type=!projectile:rumianightbird] petID run damage @e[r=5.5,rm=0.5,scores={block=0,parry=0},tag=!iframes] 35 projectile

execute as @e[type=projectile:rumianightbird] at @s unless blocks ^3^2.5^1 ^-3^-0.5^1 ~~~ all run event entity @s despawn