diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-07-15 00:01:52 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-07-15 00:01:52 +0800 |
commit | 7c8b44420a5134db2a238316b0ac05b9a19e7a33 (patch) | |
tree | 234b17e0faf5b7df245e8de443709c7c2fbac35d /features/events | |
parent | 76a4d3fd258a82a059eb12ab1979fcb52471c10e (diff) | |
download | SoopyV2-7c8b44420a5134db2a238316b0ac05b9a19e7a33.tar.gz SoopyV2-7c8b44420a5134db2a238316b0ac05b9a19e7a33.tar.bz2 SoopyV2-7c8b44420a5134db2a238316b0ac05b9a19e7a33.zip |
+ make rooms detect secret counts from green ticks
Diffstat (limited to 'features/events')
-rw-r--r-- | features/events/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/features/events/index.js b/features/events/index.js index de5d119..847de49 100644 --- a/features/events/index.js +++ b/features/events/index.js @@ -231,7 +231,7 @@ class Events extends Feature { let mythMobs = [] this.todoE.forEach(e => { e = new Entity(e) - let health = e.getName().removeFormatting().split(" ")[4].split("/")[0] + let health = e.getName().removeFormatting().split(" ")[4]?.split("/")[0] if (this.MythMobsHP.getValue() && health != 0 && (e.getName().removeFormatting().includes("Exalted") || e.getName().removeFormatting().includes("Stalwart"))) { mythMobs.push(e.getName()) } |