aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/itemabilities/abilitycooldown/ItemAbilityCooldown.kt5
1 files changed, 4 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 a57dd0020..114d15673 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
@@ -155,7 +155,7 @@ class ItemAbilityCooldown {
handleOldAbilities(message)
if (message.contains("§lCASTING IN ")) {
- if (ItemAbility.RAGNAROCK_AXE.specialColor != LorenzColor.WHITE) {
+ if (!ItemAbility.RAGNAROCK_AXE.isOnCooldown()) {
ItemAbility.RAGNAROCK_AXE.activate(LorenzColor.WHITE, 3_000)
}
} else if (message.contains("§lCASTING")) {
@@ -300,6 +300,9 @@ class ItemAbilityCooldown {
if (message == "§eYou §r§aaligned §r§eyourself!") {
ItemAbility.GYROKINETIC_WAND_RIGHT.activate(LorenzColor.BLUE, 6_000)
}
+ if (message == "§cRagnarock was cancelled due to being hit!") {
+ ItemAbility.RAGNAROCK_AXE.activate(null, 17_000)
+ }
}
private fun hasAbility(stack: ItemStack): MutableList<ItemAbility> {