From fe59633cd65f152edc194f9ca63d60551e97a2c7 Mon Sep 17 00:00:00 2001 From: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com> Date: Fri, 14 Aug 2020 21:26:05 +0800 Subject: [PATCH] Make AutoAttack check entity health --- MinecraftClient/ChatBots/AutoAttack.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MinecraftClient/ChatBots/AutoAttack.cs b/MinecraftClient/ChatBots/AutoAttack.cs index 6ec12a0d..3da846db 100644 --- a/MinecraftClient/ChatBots/AutoAttack.cs +++ b/MinecraftClient/ChatBots/AutoAttack.cs @@ -112,7 +112,7 @@ namespace MinecraftClient.ChatBots /// If the entity should be attacked public bool handleEntity(Entity entity) { - if (!entity.Type.IsHostile()) + if (!entity.Type.IsHostile() || entity.Health <= 0) return false; bool isBeingAttacked = entitiesToAttack.ContainsKey(entity.ID);