execute if entity @s[scores={committed=1}] run effect give @e[type=!player,distance=..5,nbt=!{HurtTime:0s}] bad_omen 3 0
execute if entity @s[scores={committed=2}] run effect give @e[type=!player,distance=..5,nbt=!{HurtTime:0s}] bad_omen 3 1
execute if entity @s[scores={committed=3}] run effect give @e[type=!player,distance=..5,nbt=!{HurtTime:0s}] bad_omen 3 2