Fixed menu bug on balcony

This commit is contained in:
Mathew Velasquez 2016-05-04 22:47:53 -04:00
parent 3a2f722786
commit f28e7f8b7c
2 changed files with 5 additions and 1 deletions

View file

@ -409,4 +409,7 @@ class Scene_Map
def new_footprint(direction, x, y)
@spriteset.new_footprint(direction, x, y)
end
def menu_open?
@menu.visible || @item_menu.visible
end
end

View file

@ -177,7 +177,8 @@ def plight_update_timer
end
def activate_balcony?(ypos)
$game_player.y == ypos &&
!$scene.menu_open? &&
$game_player.y == ypos &&
$game_player.direction == 8 &&
Input.trigger?(Input::ACTION)
end