aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-13 19:02:05 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-13 19:02:05 +0100
commitac7b96126d41f18325220e217e89e74460ba07f6 (patch)
tree181fc74de2c8958551e057a22d016898cccd78dd /src/main/java/at/hannibal2/skyhanni/data
parent72015368502f5e1bb35b6cc4e70fbf62981b92a0 (diff)
downloadskyhanni-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.kt6
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()
}
}
}