From e9bf25753378e706b2fe18c7cae9037efcf5b514 Mon Sep 17 00:00:00 2001 From: theBGuy <60308670+theBGuy@users.noreply.github.com> Date: Sun, 19 Jan 2025 01:49:01 -0500 Subject: [PATCH] fix: shriner attempting to get shrines in different area - Check that the shrine we are checking is in the same area as we are --- d2bs/kolbot/libs/core/Misc.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/d2bs/kolbot/libs/core/Misc.js b/d2bs/kolbot/libs/core/Misc.js index eb190274..42232117 100644 --- a/d2bs/kolbot/libs/core/Misc.js +++ b/d2bs/kolbot/libs/core/Misc.js @@ -666,6 +666,9 @@ const Misc = (function () { if (shrine) { do { if (!shrine.name) continue; + // don't leave our area to grab shrines + // TODO: better fix for this as it'd be okay for small detours but orginally found this at halls of vaught stairs attempting to get shrine that was on next level + if (!me.inArea(shrine.area)) continue; let _name = shrine.name.toLowerCase(); if ((_name.includes("shrine") && ShrineData.has(shrine.objtype) || (_name.includes("well"))) && ShrineData.has(shrine.objtype)