Make "on each attack" and "on kill" work when the NPC is shooting projectiles.