aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-21 07:16:39 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-21 07:16:39 +0800
commitf3fdefe9e5e58f23e2ee8e14d6d77d056e09cedd (patch)
tree988955aba8a518f4680c15b480e98522626acf03
parentb7a68ab7548a81f1b56f124c631694050b097a87 (diff)
downloadSoopyV2-f3fdefe9e5e58f23e2ee8e14d6d77d056e09cedd.tar.gz
SoopyV2-f3fdefe9e5e58f23e2ee8e14d6d77d056e09cedd.tar.bz2
SoopyV2-f3fdefe9e5e58f23e2ee8e14d6d77d056e09cedd.zip
hide haste 1 from potion display
-rw-r--r--src/features/hud/index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/features/hud/index.js b/src/features/hud/index.js
index 97e8a8e..f4d7e16 100644
--- a/src/features/hud/index.js
+++ b/src/features/hud/index.js
@@ -652,6 +652,8 @@ class Hud extends Feature {
if (potData.infinite) return
if (basiclyEqual(potData.time, godPotTime, 1000)) return
+ if (k === "haste" && potData.level === 1) return
+
let potName = firstLetterCapital(k.replace(/_/g, " "))
if (this.potsOutAlert.getValue() && potData.time - Date.now() < 60000 && Date.now() - (this.lastPotAlerts[k] || 0) > 2 * 60000) {