mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 09:30:46 -05:00
Fix patch looking for wrong Wildspawntype enum
This commit is contained in:
parent
b769a87b89
commit
f43e907193
@ -1,4 +1,5 @@
|
|||||||
using Aki.Reflection.Patching;
|
using Aki.PrePatch;
|
||||||
|
using Aki.Reflection.Patching;
|
||||||
using Aki.Reflection.Utils;
|
using Aki.Reflection.Utils;
|
||||||
using EFT;
|
using EFT;
|
||||||
using System;
|
using System;
|
||||||
@ -42,7 +43,7 @@ namespace Aki.Custom.Patches
|
|||||||
[PatchPrefix]
|
[PatchPrefix]
|
||||||
private static bool PatchPrefix(BotOwner ___botOwner_0)
|
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;
|
var healthController = ___botOwner_0.GetPlayer.ActiveHealthController;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user