BunnyCinnamon / BetterHurtTimer

Better Hurt Time Attack Frames
MIT License
5 stars 6 forks source link

Better approach to detect first-time damage #38

Closed ACGaming closed 3 months ago

ACGaming commented 3 months ago

Instead of checking lastHurtAmount which legitimately can be 0, lastHurtTick is initialized with -1 instead to reliably detect first-time damage. This fixes occasions of damage spam caused by my previous implementation which did bypass the damageSource config by accident.

BunnyCinnamon commented 3 months ago

:0000