$execute if entity @e[predicate=manic:entity/horror_target/normal,nbt=!{UUID:$(owner)},nbt=!{Owner:$(owner)},nbt=!{ArmorItems:[{},{},{},{tag:{sanguine:{targets:{owner:$(owner)}}}}]},nbt=!{ArmorItems:[{},{},{},{tag:{manic:{following:$(owner)}}}]},dy=0] run return run function manic:item/horror_crossbow/projectile/damage with entity @s item.tag.manic
$execute if entity @e[predicate=manic:entity/horror_target/normal,nbt=!{UUID:$(owner)},nbt=!{Owner:$(owner)},nbt=!{ArmorItems:[{},{},{},{tag:{sanguine:{targets:{owner:$(owner)}}}}]},nbt=!{ArmorItems:[{},{},{},{tag:{manic:{following:$(owner)}}}]},distance=..1.5] run return run function manic:item/horror_crossbow/projectile/damage with entity @s item.tag.manic
$execute facing entity @e[predicate=manic:entity/horror_target/normal,nbt=!{UUID:$(owner)},nbt=!{Owner:$(owner)},nbt=!{ArmorItems:[{},{},{},{tag:{sanguine:{targets:{owner:$(owner)}}}}]},nbt=!{ArmorItems:[{},{},{},{tag:{manic:{following:$(owner)}}}]},distance=..10,sort=nearest,limit=1] eyes positioned ^ ^ ^1 rotated as @s positioned ^ ^ ^3 facing entity @s eyes facing ^ ^ ^-1 positioned as @s run tp @s ^ ^ ^0.2 ~ ~
