Fix physics overwriting character ceiling bump speed for brick blocks (#545)

* Fix physics overwriting character ceiling bump speed for brick blocks

* Update BrickBlock.gd

* Update BrickBlock.gd

* Update BrickBlock.gd
This commit is contained in:
John Cooper McDonald
2025-10-14 10:22:00 -05:00
committed by GitHub
parent 46b4dc82b4
commit f35740d0ca

View File

@@ -13,6 +13,7 @@ func check_brick_empty() -> void:
func on_block_hit(player: Player) -> void:
if player.power_state.hitbox_size == "Big":
if item == null:
self.add_collision_exception_with(player) # Don't bonk with physics, will be handled after block is broken
await get_tree().physics_frame
destroy()
Global.score += 50