From d9264043c2f523c0800a0896e7836e21754a6255 Mon Sep 17 00:00:00 2001 From: willem Date: Fri, 15 May 2020 16:27:57 +0200 Subject: [PATCH] Added option to disable kill aura on death --- .../java/me/zeroeightsix/kami/module/modules/combat/Aura.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/combat/Aura.kt b/src/main/java/me/zeroeightsix/kami/module/modules/combat/Aura.kt index 5960bd37d..b26cd6e76 100644 --- a/src/main/java/me/zeroeightsix/kami/module/modules/combat/Aura.kt +++ b/src/main/java/me/zeroeightsix/kami/module/modules/combat/Aura.kt @@ -38,6 +38,7 @@ class Aura : Module() { private val prefer = register(Settings.e("Prefer", HitMode.SWORD)) private val autoTool = register(Settings.b("Auto Weapon", true)) private val sync = register(Settings.b("TPS Sync", false)) + private val disableOnDeath = register(Settings.b("Disable On Death", false)) private var waitCounter = 0 enum class HitMode { @@ -49,7 +50,10 @@ class Aura : Module() { } override fun onUpdate() { - if (mc.player == null || mc.player.isDead) return + if (mc.player == null || mc.player.isDead) { + if (disableOnDeath.value) disable() + return + } val autoWaitTick = 20.0f - LagCompensator.INSTANCE.tickRate val canAttack = mc.player.getCooledAttackStrength(if (sync.value) -autoWaitTick else 0.0f) >= 1