aboutsummaryrefslogtreecommitdiff
path: root/features/slayers
diff options
context:
space:
mode:
authorEmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com>2022-06-23 00:56:22 +0800
committerGitHub <noreply@github.com>2022-06-23 00:56:22 +0800
commit84a927cbbc875a920a1588b712ffd8e5fcaf95bd (patch)
tree8376db3d6f68eea9c686d7e9590c13f6a025ccce /features/slayers
parentfe2788cf16b9978921217d15a58ecba340bc1b22 (diff)
downloadSoopyV2-84a927cbbc875a920a1588b712ffd8e5fcaf95bd.tar.gz
SoopyV2-84a927cbbc875a920a1588b712ffd8e5fcaf95bd.tar.bz2
SoopyV2-84a927cbbc875a920a1588b712ffd8e5fcaf95bd.zip
small fix
- added 2s delay to 2 functions so it actually re-show summons 2s after boss (not immediately re-show when boss is dead)
Diffstat (limited to 'features/slayers')
-rw-r--r--features/slayers/index.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/features/slayers/index.js b/features/slayers/index.js
index 3e64493..88765f9 100644
--- a/features/slayers/index.js
+++ b/features/slayers/index.js
@@ -368,6 +368,8 @@ class Slayers extends Feature {
//only runs when t4's hp is <= 3m
if (emanHealth.includes("k") || (emanHealth.includes("M") && emanHealth.replace(/[^\d.]/g, "") <= 3)) {
this.hideSummons = true
+ } else if (emanHealth.replace(/[^\d.]/g, "") == 0) {
+ delay(2000, () => { this.hideSummons = false })
} else this.hideSummons = false
}
}
@@ -509,6 +511,8 @@ class Slayers extends Feature {
//only runs when t4's hp is <= 3m
if (emanHealth.includes("k") || (emanHealth.includes("M") && emanHealth.replace(/[^\d.]/g, "") <= 3)) {
this.hideSummons = true
+ } else if (emanHealth.replace(/[^\d.]/g, "") == 0) {
+ delay(2000, () => { this.hideSummons = false })
} else this.hideSummons = false
if (this.rcmDaeAxeSupport.getValue()) {
if (emanHealth.includes("k")) {