-- Lua script of map bugs/1566_hole_axis_missing/map_1.
--
-- Regression test for bug #1566: falling into a hole whose teletransporter
-- destination is "_same" could leave the hero at an arbitrary point of the
-- hole's footprint, landing it stuck in an obstacle on the destination map.
--
-- The hero starts in the small walkable gap in the middle of the hole
-- shape and walks north into the hole. It should end up on map_2 outside
-- of any obstacle.

local map = ...
local game = map:get_game()
local hero = map:get_hero()

function map:on_opening_transition_finished()

  hero:set_position(158, 173)
  game:simulate_command_pressed("up")
end
