I encountered this in 1.19. This issue occurs when interacting with an entity's score after it’s dead. Doesn't quiet look like a bug. You can fix your function by using “scoreboard players reset [target]“ at the end.
I encountered this in 1.19. This issue occurs when interacting with an entity's score after it’s dead. Doesn't quiet look like a bug. You can fix your function by using “scoreboard players reset [target]“ at the end.