Skip to content

Commit

Permalink
Add quest record digit checks for when updating mob kills
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaioru committed Sep 24, 2023
1 parent 5602e69 commit 8307727
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down

0 comments on commit 8307727

Please sign in to comment.