Skip to content

Commit

Permalink
Fix Undertaker kill button glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
EnoPM committed Sep 30, 2023
1 parent c8cd954 commit 5eb292d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BetterOtherRoles/Patches/PlayerControlPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ static void engineerUpdate() {
}

static void impostorSetTarget() {
if (!CachedPlayer.LocalPlayer.Data.Role.IsImpostor ||!CachedPlayer.LocalPlayer.PlayerControl.CanMove || CachedPlayer.LocalPlayer.Data.IsDead) { // !isImpostor || !canMove || isDead
if (!CachedPlayer.LocalPlayer.Data.Role.IsImpostor || !CachedPlayer.LocalPlayer.PlayerControl.CanMove || CachedPlayer.LocalPlayer.Data.IsDead || (CachedPlayer.LocalPlayer.PlayerControl == Undertaker.Player && Undertaker.DraggedBody != null)) { // !isImpostor || !canMove || isDead
FastDestroyableSingleton<HudManager>.Instance.KillButton.SetTarget(null);
return;
}
Expand Down

0 comments on commit 5eb292d

Please sign in to comment.