0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 05:50:44 -05:00

Fix halloween zryachiy not being peaceful

This commit is contained in:
Dev 2023-11-02 15:10:44 +00:00
parent 15baf988f2
commit 1234c611c8

View File

@ -41,6 +41,11 @@ namespace Aki.Custom.Patches
[PatchPrefix] [PatchPrefix]
private static bool PatchPrefix(ref bool __result, BotsGroup __instance, IPlayer requester) private static bool PatchPrefix(ref bool __result, BotsGroup __instance, IPlayer requester)
{ {
if (__instance.InitialBotType == WildSpawnType.peacefullZryachiyEvent)
{
return true; // Do original code
}
var isEnemy = false; // default not an enemy var isEnemy = false; // default not an enemy
if (requester == null) if (requester == null)
{ {