mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
Add Anchor, some fixes, /anagram
This commit is contained in:
1 parent
8ac5a01821
commit
fb1e0ee76e
15 files changed
+137
-50
No files matched your search
@@ -94,15 +94,16 @@ internal static class GhostRolesManager
|
||||
try
|
||||
{
|
||||
if (!CustomGameMode.Standard.IsActiveOrIntegrated()) return false;
|
||||
|
||||
if (AssignedGhostRoles.Count >= GhostRoles.Count) return false;
|
||||
|
||||
if (pc.IsAlive() || pc.GetCountTypes() is CountTypes.None or CountTypes.OutOfGame || pc.Is(CustomRoles.EvilSpirit) || pc.Is(CustomRoles.Curser)) return false;
|
||||
if (pc.IsAlive() || pc.GetCountTypes() is CountTypes.None or CountTypes.OutOfGame || pc.Is(CustomRoles.EvilSpirit) || pc.Is(CustomRoles.Anchor)) return false;
|
||||
|
||||
switch (pc.GetCustomRole())
|
||||
{
|
||||
case CustomRoles.Backstabber: return false;
|
||||
case CustomRoles.Workaholic when !Workaholic.WorkaholicCannotWinAtDeath.GetBool(): return false;
|
||||
case CustomRoles.Curser:
|
||||
case CustomRoles.Backstabber:
|
||||
case CustomRoles.Workaholic when !Workaholic.WorkaholicCannotWinAtDeath.GetBool():
|
||||
return false;
|
||||
}
|
||||
|
||||
CustomRoles suitableRole = GetSuitableGhostRole(pc);
|
||||
|
||||
Reference in new issue
Block a user