diff --git a/examples/the-dungeon-puzzlers-lament/src/game/simulation/entity.rs b/examples/the-dungeon-puzzlers-lament/src/game/simulation/entity.rs index 72b06082..63b09808 100644 --- a/examples/the-dungeon-puzzlers-lament/src/game/simulation/entity.rs +++ b/examples/the-dungeon-puzzlers-lament/src/game/simulation/entity.rs @@ -465,6 +465,9 @@ fn resolve_move(mover: &Entity, into: &Entity) -> MoveAttemptResolution { } (_, EntityType::Door) => MoveAttemptResolution::StayPut, (_, EntityType::MovableBlock) => MoveAttemptResolution::AttemptPush, + (EntityType::MovableBlock, EntityType::Hero(_) | EntityType::Enemy(_)) => { + MoveAttemptResolution::StayPut + } (_, _) => MoveAttemptResolution::CoExist, } }