diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-13 19:02:05 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-13 19:02:05 +0100 |
commit | ac7b96126d41f18325220e217e89e74460ba07f6 (patch) | |
tree | 181fc74de2c8958551e057a22d016898cccd78dd /src/main/java/at/hannibal2/skyhanni/data | |
parent | 72015368502f5e1bb35b6cc4e70fbf62981b92a0 (diff) | |
download | skyhanni-ac7b96126d41f18325220e217e89e74460ba07f6.tar.gz skyhanni-ac7b96126d41f18325220e217e89e74460ba07f6.tar.bz2 skyhanni-ac7b96126d41f18325220e217e89e74460ba07f6.zip |
Fixed highlighting some mobs in dungeon wrongly as area mini bosses.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt index c827a9f53..7a2243fbc 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt @@ -28,6 +28,7 @@ object SlayerAPI { var questStartTime = 0L var isInCorrectArea = false + var isInAnyArea = false var latestSlayerCategory = "" private var latestProgressChangeTime = 0L var latestWrongAreaWarning = 0L @@ -122,9 +123,12 @@ object SlayerAPI { if (event.isMod(5)) { isInCorrectArea = if (LorenzUtils.isStrandedProfile) { + isInAnyArea = true true } else { - getSlayerTypeForCurrentArea() == getActiveSlayer() + val slayerTypeForCurrentArea = getSlayerTypeForCurrentArea() + isInAnyArea = slayerTypeForCurrentArea != null + slayerTypeForCurrentArea == getActiveSlayer() } } } |