aboutsummaryrefslogtreecommitdiff
path: root/features/slayers
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-05-18 20:27:25 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-05-18 20:27:25 +0800
commit8244aba13f3e2d5745e933f91ed1ac84431d6d64 (patch)
treefe69bc4bb4f903b53ba0d89ab30d1f868a348d15 /features/slayers
parent5a8fc75fbcdba8c3988191e1a57ecffcc6ef27d6 (diff)
downloadSoopyV2-8244aba13f3e2d5745e933f91ed1ac84431d6d64.tar.gz
SoopyV2-8244aba13f3e2d5745e933f91ed1ac84431d6d64.tar.bz2
SoopyV2-8244aba13f3e2d5745e933f91ed1ac84431d6d64.zip
fixes
Diffstat (limited to 'features/slayers')
-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 26fa1ab..e1ec098 100644
--- a/features/slayers/index.js
+++ b/features/slayers/index.js
@@ -393,11 +393,11 @@ class Slayers extends Feature {
} else if (emanHealth.includes("M")) {
let hits = parseInt(emanHealth) / (this.rcmDamagePerHit.getValue() * 1.6); //1.6 is factoring in thunderlord + fire veil
- emanText += ` &c${Math.floor(hits - 0.5)} Hits`
+ emanText += ` &c${Math.max(1, Math.floor(hits - 0.5))} Hits`
}
}
- this.emanHpElement.setText("&6Enderman&7> " + emanText);
+ this.emanHpElement.setText(emanText);
} else {
this.emanHpElement.setText("");
}