Don't try to Melee entities that don't block movement
This commit is contained in:
parent
7d871e52a9
commit
17bad9fd4d
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ class BumpAction(MoveAction):
|
|||
if not position_is_in_bounds or not position_is_walkable:
|
||||
return self.failure()
|
||||
|
||||
if entity_occupying_position:
|
||||
if entity_occupying_position and entity_occupying_position.blocks_movement:
|
||||
return ActionResult(self, alternate=MeleeAction(self.actor, self.direction, entity_occupying_position))
|
||||
|
||||
return ActionResult(self, alternate=WalkAction(self.actor, self.direction))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue