From 503b4ef77cf6d956c1d18c341a4b4614f0d942c6 Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Wed, 14 Aug 2024 09:46:49 +0200 Subject: [PATCH] Fix combat sometimes being stuck if using 'KIllEnemyDataIds' --- Questionable/Controller/CombatController.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Questionable/Controller/CombatController.cs b/Questionable/Controller/CombatController.cs index 0da45098a..aa55ed27d 100644 --- a/Questionable/Controller/CombatController.cs +++ b/Questionable/Controller/CombatController.cs @@ -260,6 +260,13 @@ internal sealed class CombatController : IDisposable Vector3.Distance(_clientState.LocalPlayer?.Position ?? Vector3.Zero, battleNpc.Position) > 50) return 25; } + else + { + // as part of KillEnemyDataIds, not ComplexCombatData + // TODO maybe remove KillEnemyDataIds, rename ComplexCombatData to CombatData + if (gameObjectStruct->NamePlateIconId != 0) + return 29; + } } // stuff trying to kill us