diff options
Diffstat (limited to 'features')
-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; |