From f43e9071939770ae1ca2d2574c9774b863b92517 Mon Sep 17 00:00:00 2001 From: Kaeno Date: Tue, 19 Mar 2024 12:15:56 +0000 Subject: [PATCH] Fix patch looking for wrong Wildspawntype enum --- project/Aki.Custom/Patches/PmcFirstAidPatch.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/project/Aki.Custom/Patches/PmcFirstAidPatch.cs b/project/Aki.Custom/Patches/PmcFirstAidPatch.cs index 8399e12..11d9715 100644 --- a/project/Aki.Custom/Patches/PmcFirstAidPatch.cs +++ b/project/Aki.Custom/Patches/PmcFirstAidPatch.cs @@ -1,4 +1,5 @@ -using Aki.Reflection.Patching; +using Aki.PrePatch; +using Aki.Reflection.Patching; using Aki.Reflection.Utils; using EFT; using System; @@ -42,7 +43,7 @@ namespace Aki.Custom.Patches [PatchPrefix] private static bool PatchPrefix(BotOwner ___botOwner_0) { - if (___botOwner_0.IsRole((WildSpawnType)33) || ___botOwner_0.IsRole((WildSpawnType)34)) + if (___botOwner_0.IsRole((WildSpawnType)AkiBotsPrePatcher.sptUsecValue) || ___botOwner_0.IsRole((WildSpawnType)AkiBotsPrePatcher.sptBearValue)) { var healthController = ___botOwner_0.GetPlayer.ActiveHealthController;