From ff1d69d6238b6898dfe4f7c9986661a0737a2100 Mon Sep 17 00:00:00 2001 From: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> Date: Wed, 18 Sep 2024 09:31:04 +0200 Subject: Fix: Custom Scoreboard Errors (#2531) --- .../features/gui/customscoreboard/ScoreboardPattern.kt | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt index 1c6fb4282..0324da855 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt @@ -274,8 +274,13 @@ object ScoreboardPattern { "uselessgoblin", "^§7Kill goblins!$", ) + + /** + * REGEX-TEST: Remaining: §a1 goblin + * REGEX-TEST: Remaining: §a2 goblins + */ val remainingGoblinPattern by miningSb.pattern( - "remaininggoblin", "^Remaining: §a\\d+ goblins$", + "remaininggoblin", "^Remaining: §a\\d+ goblins?$", ) val yourGoblinKillsPattern by miningSb.pattern( "yourgoblin", "^Your kills: §c\\d+ ☠( §a\\(\\+\\d+\\))?$", @@ -303,9 +308,13 @@ object ScoreboardPattern { "magmaboss", "^§7Boss: §[c6e]\\d{1,3}%$", ) + + /** + * REGEX-TEST: §7Damage Soaked:§629,446 §e(+271 + */ val damageSoakedPattern by combatSb.pattern( "damagesoaked", - "^§7Damage Soaked:", + "^§7Damage Soaked:.*", ) val killMagmasPattern by combatSb.pattern( "killmagmas", -- cgit