diff --git a/data/scripts/actions/others/doors.lua b/data/scripts/actions/others/doors.lua index b4de9863..f75c3c65 100644 --- a/data/scripts/actions/others/doors.lua +++ b/data/scripts/actions/others/doors.lua @@ -3,7 +3,7 @@ local door = Action() function door.onUse(player, item, fromPosition, target, toPosition, isHotkey) local itemId = item:getId() if table.contains(closedQuestDoors, itemId) then - if player:getStorageValue(item.actionid) ~= -1 or player:getGroup():getAccess() then + if player:getStorageValue(item.actionid) ~= -1 then item:transform(itemId + 1) player:teleportTo(toPosition, true) else @@ -11,7 +11,7 @@ function door.onUse(player, item, fromPosition, target, toPosition, isHotkey) end return true elseif table.contains(closedLevelDoors, itemId) then - if item.actionid > 0 and player:getLevel() >= item.actionid - actionIds.levelDoor or player:getGroup():getAccess() then + if item.actionid > 0 and player:getLevel() >= item.actionid - actionIds.levelDoor then item:transform(itemId + 1) player:teleportTo(toPosition, true) else