aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authoralexia <me@alexia.lol>2024-01-28 18:34:47 +0100
committerGitHub <noreply@github.com>2024-01-28 18:34:47 +0100
commit4487d168e4db417767dfae55860b1478e3ee2696 (patch)
tree50cebf6b4cc5d98af5f0da1a28ff4d3279092d03 /src/main/java
parentec0fba2756e4d2e7e0f46bfd5cd4bff6208541f8 (diff)
downloadskyhanni-4487d168e4db417767dfae55860b1478e3ee2696.tar.gz
skyhanni-4487d168e4db417767dfae55860b1478e3ee2696.tar.bz2
skyhanni-4487d168e4db417767dfae55860b1478e3ee2696.zip
Skip unavailable experiments for number of clicks (#952)
Skip unavailable experiments for number of clicks. #952
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/SuperpairsClicksAlert.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/SuperpairsClicksAlert.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/SuperpairsClicksAlert.kt
index 6ca018c9f..e2519fd72 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/SuperpairsClicksAlert.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/SuperpairsClicksAlert.kt
@@ -29,6 +29,7 @@ class SuperpairsClicksAlert {
roundsNeeded = -1
break
}
+ if (lore.any { it.contains("Enchanting level too low!") || it.contains("Not enough experience!") }) continue
val match = lore.asReversed().firstNotNullOfOrNull { roundsNeededRegex.find(it.removeColor()) } ?: continue
roundsNeeded = match.groups[1]!!.value.toInt()
break