Skip to content

Commit

Permalink
fix: position after try to cross bridge (#3175)
Browse files Browse the repository at this point in the history
The problem was that the ladder action was executed first, followed
immediately by the teleportTo action, causing the Player to move above
the ladder with the possibility of crossing the bridge.
  • Loading branch information
pess0a authored Dec 14, 2024
1 parent 61c1fc0 commit 03f1d14
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function rookVillage.onStepIn(creature, item, position, fromPosition)
return true
end

player:teleportTo(Position(player:getPosition().x, player:getPosition().y - 1, player:getPosition().z))
player:teleportTo(Position(player:getPosition().x, player:getPosition().y - 3, player:getPosition().z + 1))
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You don't have any business there anymore.")

return true
Expand Down

0 comments on commit 03f1d14

Please sign in to comment.