Skip to content

Commit

Permalink
fix killaura attacking while dead (bruh)
Browse files Browse the repository at this point in the history
  • Loading branch information
1zun4 committed Nov 26, 2023
1 parent b64823e commit b278cde
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ object ModuleKillAura : Module("KillAura", Category.COMBAT) {
val isInInventoryScreen =
InventoryTracker.isInventoryOpenServerSide || mc.currentScreen is GenericContainerScreen

if ((isInInventoryScreen && !ignoreOpenInventory) || player.isSpectator || player.isDead || player.health <= 0f) {
if ((isInInventoryScreen && !ignoreOpenInventory) || player.isSpectator || player.isDead) {
// Cleanup current target tracker
targetTracker.cleanup()
return@handler
Expand All @@ -369,7 +369,7 @@ object ModuleKillAura : Module("KillAura", Category.COMBAT) {
}

val repeatable = repeatable {
if (player.isDead || player.isSpectator || player.health <= 0f) {
if (player.isDead || player.isSpectator) {
return@repeatable
}

Expand Down

0 comments on commit b278cde

Please sign in to comment.