From 22bbcec4bceba8e8b314d18bf9b54bfc2c591ba3 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Tue, 27 Sep 2022 15:41:25 +0800 Subject: + fix double powder not disabling + (possibly) fix diana warp hotkey being buggy --- src/features/hud/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/features/hud') diff --git a/src/features/hud/index.js b/src/features/hud/index.js index 352a9d0..fad13c5 100644 --- a/src/features/hud/index.js +++ b/src/features/hud/index.js @@ -628,7 +628,7 @@ class Hud extends Feature { let godPotTime = -1 if (this.potsExpireAt["water_breathing"]?.level === 6 && this.potsExpireAt["resistance"]?.level === 8 - && basiclyEqual(this.potsExpireAt["water_breathing"]?.time, this.potsExpireAt["resistance"]?.time, 1000)) { + && basiclyEqual(this.potsExpireAt["water_breathing"]?.time, this.potsExpireAt["resistance"]?.time, 10000)) { godPotTime = this.potsExpireAt["water_breathing"].time } @@ -651,7 +651,7 @@ class Hud extends Feature { Object.keys(this.potsExpireAt).forEach(k => { let potData = this.potsExpireAt[k] if (potData.infinite) return - if (basiclyEqual(potData.time, godPotTime, 1000)) return + if (basiclyEqual(potData.time, godPotTime, 10000)) return if (potData.time < Date.now()) return if (k === "haste" && potData.level === 1) return -- cgit