aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-23 00:31:57 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-23 00:31:57 +0200
commitbd7c0eb2cdf4825ce4fa40482de9693d24e27a70 (patch)
treed614cb3e80475c666e02cc61807348a4b9b4d7dc /src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt
parent6ef62c0a5c2f23befeac58451ff7a41cb0ec4678 (diff)
downloadskyhanni-bd7c0eb2cdf4825ce4fa40482de9693d24e27a70.tar.gz
skyhanni-bd7c0eb2cdf4825ce4fa40482de9693d24e27a70.tar.bz2
skyhanni-bd7c0eb2cdf4825ce4fa40482de9693d24e27a70.zip
Hopefully fixed derpy problems with trevor trapper, arachne, arachne keeper and zealots
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt
index 6763dabeb..12c47355f 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt
@@ -102,8 +102,9 @@ object EntityUtils {
fun EntityLivingBase.hasMaxHealth(health: Int, boss: Boolean = false, maxHealth: Int = baseMaxHealth): Boolean {
if (maxHealth == health) return true
- //Derpy
- if (maxHealth == health * 2) return true
+ if (LorenzUtils.isDerpy) {
+ if (maxHealth == health * 2) return true
+ }
// TODO runic support
@@ -112,7 +113,9 @@ object EntityUtils {
if (maxHealth == health * 3) return true
//Derpy + Corrupted
- if (maxHealth == health * 2 * 3) return true
+ if (LorenzUtils.isDerpy) {
+ if (maxHealth == health * 2 * 3) return true
+ }
}
return false