Skip to content

Commit

Permalink
Merge branch 'main' into fix/count-monter-improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
elsongabriel authored Dec 20, 2023
2 parents 0906a87 + d31ee30 commit 23a0212
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 23a0212

Please sign in to comment.