Skip to content

Commit

Permalink
fix: shriner attempting to get shrines in different area
Browse files Browse the repository at this point in the history
- Check that the shrine we are checking is in the same area as we are
  • Loading branch information
theBGuy committed Jan 19, 2025
1 parent f4986d9 commit e9bf257
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions d2bs/kolbot/libs/core/Misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e9bf257

Please sign in to comment.