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:
		| @@ -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!") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user