diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/dungeon')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonBossMessages.kt | 3 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonBossMessages.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonBossMessages.kt index 1ffd0fc70..e8636ed7c 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonBossMessages.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonBossMessages.kt @@ -24,7 +24,8 @@ class DungeonBossMessages { when { message.matchRegex("§([cd4])\\[BOSS] (.*)") -> { when { - message.contains(" The Watcher§r§f: ") -> return true + message.contains(" The Watcher§r§f: ") -> + message != "§c[BOSS] The Watcher§r§f: You have proven yourself. You may pass." message.contains(" Bonzo§r§f: ") -> return true message.contains(" Scarf§r§f:") -> return true message.contains("Professor§r§f") -> return true diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt index b4620ece4..ef19d53ec 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt @@ -18,7 +18,7 @@ class DungeonCopilot { @SubscribeEvent fun onChatMessage(event: LorenzChatEvent) { - if (!LorenzUtils.inDungeons) return + if (!isEnabled()) return val message = event.message @@ -71,6 +71,7 @@ class DungeonCopilot { } if (message == "§c[BOSS] The Watcher§r§f: You have proven yourself. You may pass.") { + event.blockedReason = "dungeon copilot" changeNextStep("Enter Boss Room") } } @@ -127,8 +128,7 @@ class DungeonCopilot { @SubscribeEvent fun renderOverlay(event: RenderGameOverlayEvent.Post) { if (event.type != RenderGameOverlayEvent.ElementType.ALL) return - if (!LorenzUtils.inDungeons) return - if (!SkyHanniMod.feature.dungeon.copilotEnabled) return + if (!isEnabled()) return SkyHanniMod.feature.dungeon.copilotPos.renderString(nextStep) } |