From 84a927cbbc875a920a1588b712ffd8e5fcaf95bd Mon Sep 17 00:00:00 2001 From: EmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com> Date: Thu, 23 Jun 2022 00:56:22 +0800 Subject: 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) --- features/slayers/index.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'features/slayers') 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")) { -- cgit