function Position:isPathable(checkpz, checkcreature)
local tile = Tile(self)
if not tile then
return false
end
if checkpz then
if tile:hasFlag(TILESTATE_PROTECTIONZONE) then
return false
end
end
if checkcreature then
if tile:getTopCreature() then
return false
end
end
if tile:hasFlag(TILESTATE_MAGICFIELD) then
end
return (not tile:hasFlag(TILESTATE_BLOCKSOLID))
end