Update spaz.py

This commit is contained in:
VinniTR 2023-09-28 11:21:35 -05:00 committed by GitHub
parent 1d54e322ca
commit 7d29430881
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1136,7 +1136,7 @@ class Spaz(bs.Actor):
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:
if msg.hit_type == 'impact' and damage >= self.hitpoints:
# Drop damage to whatever puts us at 10 hit points,
# or 200 less than it used to be whichever is greater
# (so it *can* still kill us if its high enough).