diff options
author | alexia <me@alexia.lol> | 2024-01-28 18:34:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-28 18:34:47 +0100 |
commit | 4487d168e4db417767dfae55860b1478e3ee2696 (patch) | |
tree | 50cebf6b4cc5d98af5f0da1a28ff4d3279092d03 /src/main/java | |
parent | ec0fba2756e4d2e7e0f46bfd5cd4bff6208541f8 (diff) | |
download | skyhanni-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.kt | 1 |
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 |