Skip to content

Commit

Permalink
LEGACY: Minor Changes (CCBlueX#2744)
Browse files Browse the repository at this point in the history
- Added "None" option to KillAura Mark.
- Minor fix in AutoDisable.
  • Loading branch information
EclipsesDev committed Apr 8, 2024
1 parent 85552a0 commit fb8d3fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ object KillAura : Module("KillAura", ModuleCategory.COMBAT, Keyboard.KEY_R) {
)

// Visuals
private val mark by ListValue("Mark", arrayOf("Platform", "Box"), "Platform", subjective = true)
private val mark by ListValue("Mark", arrayOf("None", "Platform", "Box"), "Platform", subjective = true)
private val boxOutline by BoolValue("Outline", true, subjective = true) { mark == "Box" }
private val fakeSharp by BoolValue("FakeSharp", true, subjective = true)

Expand Down Expand Up @@ -422,21 +422,22 @@ object KillAura : Module("KillAura", ModuleCategory.COMBAT, Keyboard.KEY_R) {

target ?: return

if (attackTimer.hasTimePassed(attackDelay)) {
if (maxCPS > 0)
clicks++
attackTimer.reset()
attackDelay = randomClickDelay(minCPS, maxCPS)
}

val hittableColor = if (hittable) Color(37, 126, 255, 70) else Color(255, 0, 0, 70)

if (targetMode != "Multi") {
when (mark.lowercase()) {
"none" -> return
"platform" -> drawPlatform(target!!, hittableColor)
"box" -> drawEntityBox(target!!, hittableColor, boxOutline)
}
}

if (attackTimer.hasTimePassed(attackDelay)) {
if (maxCPS > 0)
clicks++
attackTimer.reset()
attackDelay = randomClickDelay(minCPS, maxCPS)
}
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ object AutoDisable : Module("AutoDisable", ModuleCategory.MISC, gameDetecting =

@EventTarget
fun onWorld(event: WorldEvent) {
if (mc.thePlayer == null) {
return
}

if (onWorldChange) {
disabled("world changed")
}
Expand Down

0 comments on commit fb8d3fd

Please sign in to comment.