Add Anchor, some fixes, /anagram

This commit is contained in:
Gurge44 committed 2024-12-20 10:56:21 +01:00
1 parent 8ac5a01821
commit fb1e0ee76e
15 files changed
+137 -50

No files matched your search

+5 -4
View File
@@ -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);