Skip to content

Commit

Permalink
fix(legacy): KillAura AutoBlock not updating block status after manua…
Browse files Browse the repository at this point in the history
…lly switching slots. (#5680)
  • Loading branch information
mems01 authored Feb 22, 2025
1 parent fc2b82a commit 063b79d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,12 @@ object KillAura : Module("KillAura", Category.COMBAT, Keyboard.KEY_R) {
val onTick = handler<GameTickEvent>(priority = 2) {
val player = mc.thePlayer ?: return@handler

if (blockStatus && player.heldItem?.item !is ItemSword) {
blockStatus = false
renderBlocking = false
return@handler
}

if (shouldPrioritize()) {
target = null
renderBlocking = false
Expand Down

0 comments on commit 063b79d

Please sign in to comment.