Fixed being able to jump over a ledge the wrong way if it's on the edge of a connected map

This commit is contained in:
Maruno17
2024-01-18 22:40:58 +00:00
parent c5d7d1447b
commit 97a66020ca
5 changed files with 22 additions and 22 deletions

View File

@@ -922,7 +922,7 @@ module Compiler
if thisEvent.pages[0].graphic.character_name == "" &&
thisEvent.pages[0].list.length <= 12 &&
thisEvent.pages[0].list.any? { |cmd| cmd.code == 201 } && # Transfer Player
# mapData.isPassable?(mapID,thisEvent.x,thisEvent.y+1) &&
# mapData.isPassable?(mapID, thisEvent.x, thisEvent.y + 1) &&
mapData.isPassable?(mapID, thisEvent.x, thisEvent.y) &&
!mapData.isPassable?(mapID, thisEvent.x - 1, thisEvent.y) &&
!mapData.isPassable?(mapID, thisEvent.x + 1, thisEvent.y) &&