From 4487d168e4db417767dfae55860b1478e3ee2696 Mon Sep 17 00:00:00 2001 From: alexia Date: Sun, 28 Jan 2024 18:34:47 +0100 Subject: Skip unavailable experiments for number of clicks (#952) Skip unavailable experiments for number of clicks. #952 --- .../java/at/hannibal2/skyhanni/features/misc/SuperpairsClicksAlert.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java') 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 -- cgit