From 8da1346198fe4f2ed0a45b2273ac3b3bd3927025 Mon Sep 17 00:00:00 2001 From: schwKatz Date: Sun, 11 Aug 2024 21:03:35 +0900 Subject: [PATCH] =?UTF-8?q?bugFix)=E5=9B=BA=E5=AE=9A=E3=82=A2=E3=82=B5?= =?UTF-8?q?=E3=82=A4=E3=83=B3=E3=81=AE=E5=A0=B4=E5=90=88=E3=81=AB=E3=82=A4?= =?UTF-8?q?=E3=83=B3=E3=83=9D=E3=82=B9=E3=82=BF=E3=83=BC=E4=BB=A5=E5=A4=96?= =?UTF-8?q?=E3=81=A7=E3=82=A4=E3=83=B3=E3=83=9D=E3=82=B9=E3=82=BF=E3=83=BC?= =?UTF-8?q?=E3=82=AB=E3=82=A6=E3=83=B3=E3=83=88=E3=81=99=E3=82=8B=E5=BD=B9?= =?UTF-8?q?=E8=81=B7=E3=82=92=E6=AD=A3=E3=81=97=E3=81=84=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E3=81=A7=E3=82=AB=E3=82=A6=E3=83=B3=E3=83=88=E3=81=99=E3=82=8B?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB=E4=BF=AE=E6=AD=A3=20=E4=BE=8B?= =?UTF-8?q?=EF=BC=89=E3=82=A8=E3=82=B4=E3=82=A4=E3=82=B9=E3=83=88=E9=85=8D?= =?UTF-8?q?=E5=BD=B9=E3=81=AE=E3=81=A8=E3=81=8D=E3=81=AB=EF=BC=91=E4=BA=BA?= =?UTF-8?q?=E5=BD=B9=E8=81=B7=E3=81=8C=E5=89=B2=E5=BD=93=E3=81=9F=E3=82=89?= =?UTF-8?q?=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Roles/RoleAssignManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Roles/RoleAssignManager.cs b/Roles/RoleAssignManager.cs index 8d26f8c4b..6201eb36d 100644 --- a/Roles/RoleAssignManager.cs +++ b/Roles/RoleAssignManager.cs @@ -141,7 +141,7 @@ private static void SetFixedAssignRole() if (numImpostorsLeft <= 0 && numOthersLeft <= 0) break; var targetRoles = role.GetAssignUnitRolesArray(); - var numImpostorAssign = targetRoles.Count(role => role.IsImpostor()); + var numImpostorAssign = targetRoles.Count(role => role.GetAssignRoleType() == CustomRoleTypes.Impostor); var numOthersAssign = targetRoles.Length - numImpostorAssign; //アサイン枠が足りてない場合 if (numImpostorAssign > numImpostorsLeft