diff --git a/project/Aki.Custom/Patches/IsEnemyPatch.cs b/project/Aki.Custom/Patches/IsEnemyPatch.cs index 65099db..54bfd01 100644 --- a/project/Aki.Custom/Patches/IsEnemyPatch.cs +++ b/project/Aki.Custom/Patches/IsEnemyPatch.cs @@ -50,7 +50,7 @@ namespace Aki.Custom.Patches } // Check existing enemies list - if (__instance.Enemies.Any(x=> x.Value.Player.Id == requester.Id)) + if (!__instance.Enemies.IsNullOrEmpty() && __instance.Enemies.Any(x=> x.Value.Player.Id == requester.Id)) { isEnemy = true; }