Skip to content

Commit 444c92a

Browse files
committed
disableWhileGliding setting in kill aura
1 parent d473fb2 commit 444c92a

File tree

1 file changed

+3
-0
lines changed
  • src/main/kotlin/com/lambda/module/modules/combat

1 file changed

+3
-0
lines changed

src/main/kotlin/com/lambda/module/modules/combat/KillAura.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ object KillAura : Module(
5050
// Interact
5151
private val rotate by setting("Rotate", true).group(Group.General)
5252
private val swap by setting("Swap", true, "Swap to the item with the highest damage").group(Group.General)
53+
private val disableWhileGliding by setting("Disable While Gliding", false, "Disables when gliding with an elytra").group(Group.General)
5354
private val damageMode by setting("Damage Mode", DamageMode.DPS).group(Group.General)
5455
private val attackMode by setting("Attack Mode", AttackMode.Cooldown).group(Group.General)
5556
private val cooldownShrink by setting("Cooldown Offset", 0, 0..5, 1) { attackMode == AttackMode.Cooldown }.group(Group.General)
@@ -106,6 +107,8 @@ object KillAura : Module(
106107
listen<InventoryEvent.HotbarSlot.Update> { cooldownFromSwap = true }
107108

108109
listen<TickEvent.Pre> {
110+
if (disableWhileGliding && player.isGliding) return@listen
111+
109112
target?.let { entity ->
110113
// Wait until the rotation has a hit result on the entity
111114
var rotated = true

0 commit comments

Comments
 (0)