Fixed a bug in skullstorm.py. Players can not be damaged by falling skulls if invincible. Jumping is no longer a good way to avoid them because they are falling from above.

This commit is contained in:
Storm Dragon
2025-02-22 16:45:37 -05:00
parent d2d378f337
commit 1502e7d3da

View File

@@ -106,6 +106,7 @@ class SkullStorm(Object):
# Check if player was hit
if abs(player.xPos - skull['x']) < 1: # Within 1 tile
if not player.isJumping: # Only hit if not jumping
if not player.isInvincible:
player.set_health(player.get_health() - self.damage)
self.sounds['player_takes_damage'].play()
speak("Hit by falling skull!")