Skip to content

Commit

Permalink
Update KillAura.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
C00LC0D35 authored Dec 7, 2023
1 parent 5eec479 commit 86e8d52
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,9 @@ object KillAura : Module() {
}

if (autoBlockPacketValue.equals("Legit2") && autoBlockValue.equals("Range")) {
if (mc.thePlayer.ticksExisted % 4 == 1) {
if (mc.thePlayer.ticksExisted % 4 == 1 && (!smartAutoBlockValue.get() || mc.thePlayer.hurtTime < 3)) {
startBlocking(target, interactAutoBlockValue.get() && (mc.thePlayer.getDistanceToEntityBox(target) < maxRange))
} else if (mc.thePlayer.ticksExisted % 4 == 3) {
} else if (mc.thePlayer.ticksExisted % 4 == 3 || (smartAutoBlockValue.get() && mc.thePlayer.hurtTime > 3)) {
stopBlocking()
}
}
Expand All @@ -498,7 +498,7 @@ object KillAura : Module() {
private fun runAttackLoop() {

if (autoBlockPacketValue.equals("Legit2") && autoBlockValue.equals("Range")) {
if (mc.thePlayer.ticksExisted % 4 > 0) {
if (mc.thePlayer.ticksExisted % 4 > 0 && (!smartAutoBlockValue.get() || mc.thePlayer.hurtTime < 3)) {
return
}
}
Expand Down

0 comments on commit 86e8d52

Please sign in to comment.