aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-03 21:24:53 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-03 21:24:53 +0100
commite3dfb7daffde3dd7f47e2c6dba79669eb669ad34 (patch)
treec3e06c37220392d6fe214ac0afc9e81013d83bb6
parente578369625f800200e5a4606fb162f41ebf0311a (diff)
downloadskyhanni-e3dfb7daffde3dd7f47e2c6dba79669eb669ad34.tar.gz
skyhanni-e3dfb7daffde3dd7f47e2c6dba79669eb669ad34.tar.bz2
skyhanni-e3dfb7daffde3dd7f47e2c6dba79669eb669ad34.zip
code cleanup
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/itemabilities/abilitycooldown/ItemAbilityCooldown.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/itemabilities/abilitycooldown/ItemAbilityCooldown.kt b/src/main/java/at/hannibal2/skyhanni/features/itemabilities/abilitycooldown/ItemAbilityCooldown.kt
index 974deb26e..a547c14b4 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/itemabilities/abilitycooldown/ItemAbilityCooldown.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/itemabilities/abilitycooldown/ItemAbilityCooldown.kt
@@ -35,6 +35,7 @@ class ItemAbilityCooldown {
private var items = mapOf<ItemStack, List<ItemText>>()
private var abilityItems = mapOf<ItemStack, MutableList<ItemAbility>>()
private val youAlignedOthersPattern = "§eYou aligned §r§a.* §r§eother player(s)?!".toPattern()
+ private val youBuffedYourselfPattern = "§aYou buffed yourself for §r§c\\+\\d+❁ Strength".toPattern()
private val WEIRD_TUBA = "WEIRD_TUBA".asInternalName()
private val WEIRDER_TUBA = "WEIRDER_TUBA".asInternalName()
private val VOODOO_DOLL_WILTED = "VOODOO_DOLL_WILTED".asInternalName()
@@ -326,7 +327,7 @@ class ItemAbilityCooldown {
if (message == "§cRagnarock was cancelled due to being hit!") {
ItemAbility.RAGNAROCK_AXE.activate(null, 17_000)
}
- "§aYou buffed yourself for §r§c\\+\\d+❁ Strength".toPattern().matchMatcher(message) {
+ youBuffedYourselfPattern.matchMatcher(message) {
ItemAbility.SWORD_OF_BAD_HEALTH.activate()
}
}