Fix combat sometimes being stuck if using 'KIllEnemyDataIds'

This commit is contained in:
Liza 2024-08-14 09:46:49 +02:00
parent 2dfc774da1
commit 503b4ef77c
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -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