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

execute as @s at @s unless score @s petID = @e[r=2,c=1,type=!projectile:tridentreproj] petID run damage @e[r=2,rm=0.5,scores={block=0,parry=0},tag=!iframes] 25 projectile

execute as @s[tag=!projectileHit] at @s unless score @s petID = @e[r=2,c=1,type=!projectile:tridentreproj] petID run execute as @e[r=2,type=!projectile:tridentreproj,c=1] at @s run event entity @e[type=projectile:tridentreproj,c=1,r=2] bolt

execute as @s[tag=!projectileHit] at @s unless blocks ^3^2.5^1 ^-3^-0.5^1 ~~~ all run event entity @s bolt