aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-03-25 04:40:00 -0500
committeringlettronald <inglettronald@gmail.com>2023-03-25 04:40:00 -0500
commit2fc86c0835993d2d654e5dd7bda03bcb5a530e5c (patch)
tree67582cf749bba617558828c74be2a6ea461b5291 /src/main/kotlin
parent9fbd2156165b454f1fc07b642870866455e7b373 (diff)
downloadDulkirMod-2fc86c0835993d2d654e5dd7bda03bcb5a530e5c.tar.gz
DulkirMod-2fc86c0835993d2d654e5dd7bda03bcb5a530e5c.tar.bz2
DulkirMod-2fc86c0835993d2d654e5dd7bda03bcb5a530e5c.zip
Dead Dragons dont have hitboxes now
Diffstat (limited to 'src/main/kotlin')
-rw-r--r--src/main/kotlin/dulkirmod/features/DragonTimer.kt15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/main/kotlin/dulkirmod/features/DragonTimer.kt b/src/main/kotlin/dulkirmod/features/DragonTimer.kt
index c8affee..afff52a 100644
--- a/src/main/kotlin/dulkirmod/features/DragonTimer.kt
+++ b/src/main/kotlin/dulkirmod/features/DragonTimer.kt
@@ -120,15 +120,20 @@ object DragonTimer {
if (!ScoreBoardUtils.isInM7) return
if (mc.thePlayer.positionVector.yCoord > 45) return
// Blue
- WorldRenderUtils.drawCustomBox(71.5, 25.0, 16.0, 10.0, 82.5, 25.0, Color(0, 170, 170, 255), 3f, phase = false)
+ if (!isDead("blue"))
+ WorldRenderUtils.drawCustomBox(71.5, 25.0, 16.0, 10.0, 82.5, 25.0, Color(0, 170, 170, 255), 3f, phase = false)
// Purple
- WorldRenderUtils.drawCustomBox(45.5, 23.0, 13.0, 10.0, 113.5, 23.0, Color(170, 0, 170, 255), 3f, phase = false)
+ if (!isDead("purple"))
+ WorldRenderUtils.drawCustomBox(45.5, 23.0, 13.0, 10.0, 113.5, 23.0, Color(170, 0, 170, 255), 3f, phase = false)
// Green
- WorldRenderUtils.drawCustomBox(7.0, 30.0, 8.0, 20.0, 80.0, 30.0, Color(85, 255, 85, 255), 3f, phase = false)
+ if (!isDead("green"))
+ WorldRenderUtils.drawCustomBox(7.0, 30.0, 8.0, 20.0, 80.0, 30.0, Color(85, 255, 85, 255), 3f, phase = false)
// Red
- WorldRenderUtils.drawCustomBox(14.5, 25.0, 13.0, 15.0, 45.5, 25.0, Color(255, 85, 85, 255), 3f, phase = false)
+ if (!isDead("red"))
+ WorldRenderUtils.drawCustomBox(14.5, 25.0, 13.0, 15.0, 45.5, 25.0, Color(255, 85, 85, 255), 3f, phase = false)
// Orange
- WorldRenderUtils.drawCustomBox(72.0, 30.0, 8.0, 20.0, 47.0, 30.0, Color(255, 170, 0, 255), 3f, phase = false)
+ if (!isDead("orange"))
+ WorldRenderUtils.drawCustomBox(72.0, 30.0, 8.0, 20.0, 47.0, 30.0, Color(255, 170, 0, 255), 3f, phase = false)
}
@SubscribeEvent