From 5a75b69da9f8b1cfa7705c6d6b9850d72b5a0ab6 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Mon, 13 Feb 2023 17:07:52 +0100 Subject: Barbarian Duke Damage Indicator only starts showing after getting close. --- .../java/at/hannibal2/skyhanni/features/damageindicator/MobFinder.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features') diff --git a/src/main/java/at/hannibal2/skyhanni/features/damageindicator/MobFinder.kt b/src/main/java/at/hannibal2/skyhanni/features/damageindicator/MobFinder.kt index 0be33f168..543949cce 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/damageindicator/MobFinder.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/damageindicator/MobFinder.kt @@ -4,6 +4,7 @@ import at.hannibal2.skyhanni.features.dungeon.DungeonData import at.hannibal2.skyhanni.utils.EntityUtils.hasBossHealth import at.hannibal2.skyhanni.utils.EntityUtils.hasMaxHealth import at.hannibal2.skyhanni.utils.EntityUtils.hasNameTagWith +import at.hannibal2.skyhanni.utils.LocationUtils import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.LorenzVec import at.hannibal2.skyhanni.utils.StringUtils.matchRegex @@ -206,7 +207,9 @@ class MobFinder { return EntityResult(bossType = BossType.NETHER_MAGE_OUTLAW) } if (entity.name == "DukeBarb ") { - return EntityResult(bossType = BossType.NETHER_BARBARIAN_DUKE) + if (entity.getLorenzVec().distance(LocationUtils.playerLocation()) < 30) { + return EntityResult(bossType = BossType.NETHER_BARBARIAN_DUKE) + } } } if (entity is EntityWither) { -- cgit