From 1502e7d3da1523d7e0247b6d4ca10cf991c3db50 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sat, 22 Feb 2025 16:45:37 -0500 Subject: [PATCH] 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. --- src/skull_storm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/skull_storm.py b/src/skull_storm.py index bfb3e8f..34beb33 100644 --- a/src/skull_storm.py +++ b/src/skull_storm.py @@ -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!")