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) def new_footprint(direction, x, y)
@spriteset.new_footprint(direction, x, y) @spriteset.new_footprint(direction, x, y)
end end
def menu_open?
@menu.visible || @item_menu.visible
end
end end

View file

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