【778】添加参数

main
Yurui 2025-04-27 17:34:35 +08:00
parent 60d06427f8
commit 73867272a0
1 changed files with 2 additions and 1 deletions

View File

@ -47,8 +47,9 @@ public class ConditionCombatLeastOccupy : ICondition
if (args.Count < 1)
throw new ConditionException($"{nameof(ConditionCombatLeastOccupy)}条件(至少占领数量)需要1个参数当前只有{args.Count}个参数参数1数量");
int count = (int)args[0];
if (!LevelManager.Instance.IsInLevel)
return new string[1] { string.Empty };
return new string[1] { count.ToString() };
else
{
int curCount = 0;