0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-12 16:50:43 -05:00
This commit is contained in:
Dev 2023-07-11 10:19:41 +01:00
parent 5cd5caa557
commit cf30659225
3 changed files with 8 additions and 2 deletions

View File

@ -23,7 +23,7 @@ git config --local user.email "USERNAME@SOMETHING.com"
## Requirements
- Escape From Tarkov 24605
- Escape From Tarkov 24696
- BepInEx 5.4.19
- Visual Studio Code
- .NET 6 SDK

View File

@ -42,7 +42,13 @@ namespace Aki.Custom.Patches
private static bool PatchPrefix(ref bool __result, BotGroupClass __instance, IAIDetails requester)
{
var isEnemy = false; // default not an enemy
if (requester == null)
{
__result = isEnemy;
return true; // Skip original
}
// Check existing enemies list
if (__instance.Enemies.Any(x=> x.Value.Player.Id == requester.Id))
{

Binary file not shown.