Allow sabotages by dead impostors

2021.12.8+ sets the role of dead players to {Crewmate,Impostor}Ghost, so
relax the anticheat to allow sabotages by ImpostorGhosts
This commit is contained in:
miniduikboot committed 2023-01-07 14:11:06 +01:00
1 parent 11bb2dec47
commit 6962d01dbd
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -8,5 +8,7 @@ namespace Impostor.Api.Innersloth
Engineer,
GuardianAngel,
Shapeshifter,
CrewmateGhost,
ImpostorGhost,
}
}
@@ -34,7 +34,7 @@ namespace Impostor.Server.Net.Inner.Objects
public bool Disconnected { get; internal set; }
public bool IsImpostor => RoleType is RoleTypes.Impostor or RoleTypes.Shapeshifter;
public bool IsImpostor => RoleType is RoleTypes.Impostor or RoleTypes.Shapeshifter or RoleTypes.ImpostorGhost;
public bool CanVent => RoleType is RoleTypes.Impostor or RoleTypes.Shapeshifter or RoleTypes.Engineer;