fix better host CheckProtect

This commit is contained in:
D1GQ committed 2024-07-29 19:11:12 -05:00
1 parent 5780dc1060
commit 5ddbf2292c
1 file changed
+1 -1
+1 -1
View File
@@ -22,7 +22,7 @@ class BetterHostManager
PlayerControl target = reader.ReadNetObject<PlayerControl>();
if (target != null)
{
if (player.Data.Role is GuardianAngelRole && player.IsAlive() && !player.IsImpostorTeam())
if (player.Data.RoleType == RoleTypes.GuardianAngel && player.IsAlive() && !player.IsImpostorTeam())
{
if (target.IsAlive())
{