Fix combat sometimes being stuck if using 'KIllEnemyDataIds'

cacahuetes-minorupdate1
Liza 2024-08-14 09:46:49 +02:00
parent 2dfc774da1
commit 503b4ef77c
Signed by: liza
GPG Key ID: 7199F8D727D55F67
1 changed files with 7 additions and 0 deletions

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