Files
EndlessHostRoles/Patches/OneWayShadowsPatch.cs
T

18 lines
469 B
C#

using HarmonyLib;
namespace EHR;
[HarmonyPatch(typeof(OneWayShadows), nameof(OneWayShadows.IsIgnored))]
public static class OneWayShadowsIsIgnoredPatch
{
public static bool Prefix(OneWayShadows __instance, ref bool __result)
{
if (__instance.IgnoreImpostor && Main.ResetCamPlayerList.Contains(PlayerControl.LocalPlayer.PlayerId))
{
__result = true;
return false;
}
return true;
}
}