diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-07-08 23:01:44 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-07-08 23:01:44 +0200 |
commit | 27ab349e20957e0258f49d65c3de79be9ea7c2a4 (patch) | |
tree | 4b671730ce497940f4a84505fb86b56060d0cbb1 /src/main/java/at/hannibal2/skyhanni/features | |
parent | 69ec64113b02e51d9eeceb7e71907ade7326bf7b (diff) | |
download | skyhanni-27ab349e20957e0258f49d65c3de79be9ea7c2a4.tar.gz skyhanni-27ab349e20957e0258f49d65c3de79be9ea7c2a4.tar.bz2 skyhanni-27ab349e20957e0258f49d65c3de79be9ea7c2a4.zip |
Resetting Ragnarock ability cooldown when being hit
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/itemabilities/abilitycooldown/ItemAbilityCooldown.kt | 5 |
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> { |