aboutsummaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-12-19 17:22:37 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-12-19 17:22:37 +0800
commit7ba8a279a81d6b9c3e51fd451150d3a0f741057a (patch)
treed626c666e5c8f755dd838aaed9c9f061bcc27c46 /features
parent63c0262ee48e2963ad837dc000e6f535f80fcf88 (diff)
downloadSoopyV2-7ba8a279a81d6b9c3e51fd451150d3a0f741057a.tar.gz
SoopyV2-7ba8a279a81d6b9c3e51fd451150d3a0f741057a.tar.bz2
SoopyV2-7ba8a279a81d6b9c3e51fd451150d3a0f741057a.zip
potential fix
Diffstat (limited to 'features')
-rw-r--r--features/slayers/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/features/slayers/index.js b/features/slayers/index.js
index 5b6e5ac..e2adcfd 100644
--- a/features/slayers/index.js
+++ b/features/slayers/index.js
@@ -44,7 +44,7 @@ class Slayers extends Feature {
this.slayerExp[this.lastSlayerType] = this.lastSlayerExp + (this.slayerExp[this.lastSlayerType] || 0)
if(this.expOnKill.getValue()){
cancel(e)
- ChatLib.chat("&r &r&a&lSLAYER QUEST COMPLETE!&r")
+ ChatLib.chat("&r &r&a&lSLAYER QUEST COMPLETE!&a&r")
ChatLib.chat("&r &r&aYou have &d" + numberWithCommas(this.slayerExp[this.lastSlayerType]) + " " + this.lastSlayerType + " XP&r&7!&r")
ChatLib.chat("&r &r&aYou have &d" + numberWithCommas(Object.values(this.slayerExp).reduce((a, t)=>t+a, 0)) + " total XP&r&7!&r")
if(Date.now()-this.lastBossSlain < 60000*5) ChatLib.chat("&r &r&aBoss took &d" + timeNumber((Date.now()-this.lastBossSlain)) + " &ato spawn and kill&r&7!"+/* (" + timeNumber(Date.now()-this.lastBossSpawned) + " to kill) */"&r") //TODO: Seperate setting for this
@@ -314,7 +314,7 @@ class Slayers extends Feature {
})
if(this.emanBoss){
- this.emanHpElement.setText("&6Enderman&7> " + this.emanBoss.getName().split("Voidgloom Seraph")[1].trim())
+ this.emanHpElement.setText("&6Enderman&7> " + (this.emanBoss.getName().split("Voidgloom Seraph")[1]||"").trim())
}else{
this.emanHpElement.setText("")
}