Skip to content
This repository has been archived by the owner on Sep 4, 2023. It is now read-only.

Commit

Permalink
check current role
Browse files Browse the repository at this point in the history
  • Loading branch information
Parkeymon committed Dec 12, 2021
1 parent a8e40d6 commit 3015154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BetterDoggie/EventHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static void OnChangingRoles(ChangingRoleEventArgs ev)

Timing.CallDelayed(2f, () =>
{
if (ev.Player == null || (ev.NewRole != RoleType.Scp93953 && ev.NewRole != RoleType.Scp93989)) return;
if (ev.Player == null || (ev.Player.Role != RoleType.Scp93953 && ev.Player.Role != RoleType.Scp93989)) return;

ev.Player.Broadcast(BetterDoggie.Singleton.Config.SpawnBroadcast);

Expand Down

0 comments on commit 3015154

Please sign in to comment.