diff --git a/data/movements/scripts/closingdoor.lua b/data/movements/scripts/closingdoor.lua index 00070b2..bfb4434 100644 --- a/data/movements/scripts/closingdoor.lua +++ b/data/movements/scripts/closingdoor.lua @@ -3,11 +3,11 @@ function onStepOut(creature, item, position, fromPosition) if tile:getCreatureCount() > 0 then return true end local newPosition = {x = position.x + 1, y = position.y, z = position.z} - local query = Tile(newPosition):queryAdd(creature) + local query = Tile(newPosition):queryAdd(creature, FLAG_IGNOREBLOCKCREATURE) if query ~= RETURNVALUE_NOERROR or query == RETURNVALUE_NOTENOUGHROOM then newPosition.x = newPosition.x - 1 newPosition.y = newPosition.y + 1 - query = Tile(newPosition):queryAdd(creature) + query = Tile(newPosition):queryAdd(creature, FLAG_IGNOREBLOCKCREATURE) end if query == RETURNVALUE_NOERROR or query ~= RETURNVALUE_NOTENOUGHROOM then