X-Git-Url: https://plomlompom.com/repos/?p=plomrogue2-experiments;a=blobdiff_plain;f=new%2Fplomrogue%2Ftasks.py;h=262576273f4726301777fe0297f7e0b441d4c0a8;hp=fe41e419ca32fba8961823dcada0572e95a9e651;hb=d33b918833cc762029abf5ca0b6930e16f91e8da;hpb=faf90001efa004054b41df5e2638b6c7c4c1fd98 diff --git a/new/plomrogue/tasks.py b/new/plomrogue/tasks.py index fe41e41..2625762 100644 --- a/new/plomrogue/tasks.py +++ b/new/plomrogue/tasks.py @@ -40,7 +40,7 @@ class Task_MOVE(Task): if self.thing.world.map_[test_pos] != '.': raise GameError('%s would move into illegal terrain' % self.thing.id_) for t in self.thing.world.things: - if t.position == test_pos: + if t.blocking and t.position == test_pos: raise GameError('%s would move into other thing' % self.thing.id_) def do(self):