修复简易战斗策略存在空格时候解析失败的问题

This commit is contained in:
辉鸭蛋
2025-08-30 00:17:14 +08:00
parent 21ce9912e4
commit 7bb299ca5f

View File

@@ -104,6 +104,7 @@ public class CombatScriptParser
private static List<CombatCommand> ParseLine(string line, HashSet<string> combatAvatarNames, bool validate = true)
{
line = line.Trim();
var oneLineCombatCommands = new List<CombatCommand>();
// 以空格分隔角色和指令 截取第一个空格前的内容为角色名称,后面的为指令
// 20241116更新 不输入角色名称时,直接以当前角色为准