Update spaz.py

This commit is contained in:
VinniTR 2024-07-07 21:27:45 -05:00 committed by GitHub
parent d775ed95b4
commit bd4d41d631
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1140,7 +1140,7 @@ class Spaz(bs.Actor):
scale=0.4,
spread=0.1,
)
if self.hitpoints > 0:
if self.hitpoints >= 0:
# It's kinda crappy to die from impacts, so lets reduce
# impact damage by a reasonable amount *if* it'll keep us alive.
if msg.hit_type == 'impact' and damage >= self.hitpoints: