From 83077273651bba0996c1698735a673bae3ffde16 Mon Sep 17 00:00:00 2001 From: Kaioru Date: Sun, 24 Sep 2023 22:57:57 +0800 Subject: [PATCH] Add quest record digit checks for when updating mob kills --- .../Edelstein.Common.Gameplay.Game/Quests/QuestManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/Edelstein.Common.Gameplay.Game/Quests/QuestManager.cs b/src/common/Edelstein.Common.Gameplay.Game/Quests/QuestManager.cs index dbd27e0c8..3b56dc242 100644 --- a/src/common/Edelstein.Common.Gameplay.Game/Quests/QuestManager.cs +++ b/src/common/Edelstein.Common.Gameplay.Game/Quests/QuestManager.cs @@ -31,7 +31,7 @@ public async Task UpdateMobKill(IFieldUser user, int mobID, int inc) var quest = await _questTemplates.Retrieve(questID); if (quest?.CheckEnd.CheckMob == null) continue; - if (record.Value.Length != quest.CheckEnd.CheckMob.Count * 3) + if (record.Value.Length != quest.CheckEnd.CheckMob.Count * 3 || !record.Value.All(char.IsDigit)) { record.Value = string.Empty; for (var i = 0; i < quest.CheckEnd.CheckMob.Count; i++)