fix block pushing on ice

This commit is contained in:
Corwin 2023-08-30 00:08:29 +01:00
parent 7f10cdb869
commit 45a9dbfeac
No known key found for this signature in database

View file

@ -734,8 +734,13 @@ impl Entity {
fn push_depth(&self) -> Option<i32> {
if matches!(self.holding(), Some(&EntityType::Item(Item::Glove))) {
Some(i32::MAX)
} else {
} else if matches!(
self.entity,
EntityType::Hero(_) | EntityType::Enemy(Enemy::Squid(_))
) {
Some(1)
} else {
None
}
}