diff options
author | EmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com> | 2022-06-28 17:27:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-28 17:27:15 +0800 |
commit | 19e3b595590159a15b16f63a0594c7a84f8dc86e (patch) | |
tree | c3859489857ffd4172cc55d5aab4870c3b56f7e2 /features/slayers/index.js | |
parent | 4d7182ba8b84b0dbd773dedb6db1c84c7aee2dd0 (diff) | |
download | SoopyV2-19e3b595590159a15b16f63a0594c7a84f8dc86e.tar.gz SoopyV2-19e3b595590159a15b16f63a0594c7a84f8dc86e.tar.bz2 SoopyV2-19e3b595590159a15b16f63a0594c7a84f8dc86e.zip |
fixed a big bug
i made a return in the wrong place ;-;
Diffstat (limited to 'features/slayers/index.js')
-rw-r--r-- | features/slayers/index.js | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/features/slayers/index.js b/features/slayers/index.js index ccb6ed1..1d1b464 100644 --- a/features/slayers/index.js +++ b/features/slayers/index.js @@ -176,7 +176,14 @@ class Slayers extends Feature { } this.registerChat("&r&aYou have spawned your ${soul} &r&asoul! &r&d(${mana} Mana)&r", (soul, mana) => { - if (!this.summonFeatureMaster || (this.summonFeatureMaster && (this.summonsHideNametag || this.summonsShowNametag || this.summonHPGuiElement || this.summonsLowWarning))) return + if (!this.summonFeatureMaster) { + ChatLib.chat("1") + return + } else if (!this.summonsHideNametag && !this.summonsShowNametag && !this.summonHPGuiElement && !this.summonsLowWarning) { + ChatLib.chat("2") + return + } + ChatLib.chat("3") if (!soul.removeFormatting().includes("Tank Zombie")) { if (!this.wrongSummons) { delay(300, () => { @@ -395,15 +402,16 @@ class Slayers extends Feature { this.cannotFindEmanBoss = false } } - if (this.MinibossOffWhenBoss.getValue() && !this.bossSpawnedMessage) return let nameSplit = name.getName().removeFormatting().split(" ") let MobName = `${nameSplit[0]} ${nameSplit[1]}` - if (this.BoxAroundMiniboss.getValue() && !this.bossSpawnedMessage && this.Miniboss[this.lastSlayerType]?.has(MobName) && !this.minibossEntity.map(a => a[0].getUUID().toString()).includes(name.getUUID().toString())) { - this.minibossEntity.push([name, this.lastSlayerType]); - } - if (this.betterHideDeadEntity.getValue()) { - if (nameSplit[nameSplit.length - 1].startsWith("0") && nameSplit[nameSplit.length - 1].endsWith("❤")) { - name.getEntity()[m.setAlwaysRenderNameTag](false) + if (this.MinibossOffWhenBoss.getValue() && !this.bossSpawnedMessage) { + if (this.BoxAroundMiniboss.getValue() && !this.bossSpawnedMessage && this.Miniboss[this.lastSlayerType]?.has(MobName) && !this.minibossEntity.map(a => a[0].getUUID().toString()).includes(name.getUUID().toString())) { + this.minibossEntity.push([name, this.lastSlayerType]); + } + if (this.betterHideDeadEntity.getValue()) { + if (nameSplit[nameSplit.length - 1].startsWith("0") && nameSplit[nameSplit.length - 1].endsWith("❤")) { + name.getEntity()[m.setAlwaysRenderNameTag](false) + } } } if (this.summonEntity.length === parseInt(this.maxSummons.getValue())) return; |