Skip to content

Commit

Permalink
fix local raid not working
Browse files Browse the repository at this point in the history
  • Loading branch information
moonheart committed Jan 15, 2025
1 parent 92cf96d commit 7dcee35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MementoMori/Funcs/LocalRaid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ long GetQuestId(GetLocalRaidInfoResponse response)
{
if (response.OpenEventLocalRaidQuestIds.Count > 0)
{
var localRaidQuestMbs = response.OpenEventLocalRaidQuestIds.Select(LocalRaidQuestTable.GetById).ToList();
var localRaidQuestMbs = response.LocalRaidQuestInfos;
var localRaidQuestMb = localRaidQuestMbs.OrderByDescending(d =>
{
if (response.ClearCountDict.TryGetValue(d.Id, out var c) && c > 0) return d.FixedBattleRewards[0].ItemCount;
Expand All @@ -138,7 +138,7 @@ long GetQuestId(GetLocalRaidInfoResponse response)
}
else
{
var localRaidQuestMbs = response.OpenLocalRaidQuestIds.Select(LocalRaidQuestTable.GetById).ToList();
var localRaidQuestMbs = response.LocalRaidQuestInfos;
if (rewardItems.Count == 0) return localRaidQuestMbs.OrderByDescending(d => d.Level).First().Id;

return localRaidQuestMbs.Select(d =>
Expand Down

0 comments on commit 7dcee35

Please sign in to comment.