X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/static/gitweb.css?a=blobdiff_plain;f=plomrogue%2Ftasks.py;h=e73b174a1fed351c03cf8c22bd791900e4f76cb9;hb=0747716a70ba46dbd6a8d7091b864e02b754f56f;hp=2c0c3fce395c05011a114b3227e01843f58640f2;hpb=6cc83951670f2022bd22cbf0728ebb4c25479c4d;p=plomrogue2 diff --git a/plomrogue/tasks.py b/plomrogue/tasks.py index 2c0c3fc..e73b174 100644 --- a/plomrogue/tasks.py +++ b/plomrogue/tasks.py @@ -36,8 +36,9 @@ class Task_MOVE(Task): test_pos = self.get_move_target() if test_pos is None: raise PlayError('would move out of map') - elif test_pos in [t.position for t in self.thing.game.things]: - raise PlayError('would collide with other things') + elif test_pos in [t.position for t in self.thing.game.things + if t.blocking]: + raise PlayError('blocked by other thing') elif self.thing.game.map[test_pos] != '.': raise PlayError('would move into illegal territory')