0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-12 17:30:43 -05:00

Add edge case for zryachiy on lighthouse

This commit is contained in:
Dev 2023-07-10 17:16:54 +01:00
parent fab764172a
commit 5cd5caa557

View File

@ -50,6 +50,13 @@ namespace Aki.Custom.Patches
}
else
{
// Weird edge case - without this you get spammed with key already in enemy list error when you move around on lighthouse
// Make zryachiy use existing isEnemy() code
if (__instance.InitialBotType == WildSpawnType.bossZryachiy)
{
return false; // do original method
}
if (__instance.Side == EPlayerSide.Usec)
{
if (requester.Side == EPlayerSide.Bear || requester.Side == EPlayerSide.Savage ||