mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-19 15:51:58 +00:00
18 lines
469 B
C#
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;
|
|
}
|
|
} |