Skip to content

Commit

Permalink
fix: adventurer stone (opentibiabr#2048)
Browse files Browse the repository at this point in the history
  • Loading branch information
luancolombo authored Dec 19, 2023
1 parent 2f54ccf commit d31ee30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ end

function adventurersStone.onUse(player, item, fromPosition, target, toPosition, isHotkey)
local tile = Tile(player:getPosition())
if not tile:hasFlag(TILESTATE_PROTECTIONZONE) or tile:hasFlag(TILESTATE_HOUSE) or player:isPzLocked() or player:getCondition(CONDITION_INFIGHT, CONDITIONID_DEFAULT) then
if not tile:hasFlag(TILESTATE_PROTECTIONZONE) or tile:hasFlag(TILESTATE_HOUSE) or player:isPzLocked() then
doNotTeleport(player)
return false
end
Expand Down

0 comments on commit d31ee30

Please sign in to comment.