It appears the OnAttacked event in the event handler isn't firing at all.

george moromisato 13 May 2021:

Fixed in 1.9 Beta 4.

OnAttacked only fires for enemies. I moved the code to <OnAttackedByPlayer>.