Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Commit

Permalink
fix(AbilityManager): set active to false
Browse files Browse the repository at this point in the history
  • Loading branch information
NotSugden committed Aug 9, 2021
1 parent 92ba64d commit ad8377e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Patches/AbilityManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ public static void OnDeath(PlayerControl __instance)
: ((BodyAbilityData) buttonData).Target?.bodyRenderer).material;
material?.SetFloat("_Outline", 0f);
}

if (__instance.AmOwner)
HudManagerPatch.SetHudActive(true);
HudManagerPatch.SetHudActive(false);
}

[HarmonyPostfix]
Expand Down
3 changes: 3 additions & 0 deletions source/Patches/Roles/Role.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using TownOfUs.Roles.Modifiers;
using TownOfUs.CrewmateRoles.SeerMod;
using TownOfUs.CrewmateRoles.MedicMod;
using TownOfUs.NeutralRoles.GlitchMod;
using UnhollowerBaseLib;
using UnityEngine;
using Object = UnityEngine.Object;
Expand Down Expand Up @@ -461,6 +462,8 @@ public static void Postfix()
RoleDictionary.Clear();
Modifier.ModifierDictionary.Clear();
Lights.SetLights(Color.white);
// rare possibility that this is still set
GlitchCoroutines.IsHacked = false;
}
}

Expand Down

0 comments on commit ad8377e

Please sign in to comment.