One of my data pack is designed so that when a snowball fired by a snow golem hits a mob, it freezes them. However, I've noticed that the mob's ticks_since_last_hurt_by_mob value fluctuates between 0 and 1 at this time, and skeletons are unable to fire arrows normally.
The Attachments folder contains the file for this data pack.
Thank you for helping us improve Minecraft! We saved your files: