aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-08 23:01:44 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-08 23:01:44 +0200
commit27ab349e20957e0258f49d65c3de79be9ea7c2a4 (patch)
tree4b671730ce497940f4a84505fb86b56060d0cbb1 /src/main/java
parent69ec64113b02e51d9eeceb7e71907ade7326bf7b (diff)
downloadskyhanni-27ab349e20957e0258f49d65c3de79be9ea7c2a4.tar.gz
skyhanni-27ab349e20957e0258f49d65c3de79be9ea7c2a4.tar.bz2
skyhanni-27ab349e20957e0258f49d65c3de79be9ea7c2a4.zip
Resetting Ragnarock ability cooldown when being hit
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> {