mirror of
https://github.com/Impostor/Impostor.git
synced 2026-10-20 01:46:11 +00:00
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:
1 parent
11bb2dec47
commit
6962d01dbd
2 files changed
+3
-1
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user