mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
fix: Herta skill didnt work in multi scene
This commit is contained in:
@@ -26,6 +26,14 @@ public class HandlerUpdateMarkChestCsReq : Handler
|
||||
});
|
||||
}
|
||||
|
||||
foreach (var chestData in (player.SceneData!.MarkedChestData.GetValueOrDefault((int)req.FuncId) ?? []).Where(chestData => markedChestData.All(x =>
|
||||
!(x.ConfigId == chestData.ConfigId && x.FloorId == chestData.FloorId &&
|
||||
x.GroupId == chestData.GroupId))))
|
||||
{
|
||||
// Add the existing marked chest data if it is not in the new marked chest data
|
||||
markedChestData.Add(chestData);
|
||||
}
|
||||
|
||||
player.SceneData!.MarkedChestData[(int)req.FuncId] = markedChestData;
|
||||
|
||||
await connection.SendPacket(new PacketUpdateMarkChestScRsp(req.FuncId, player));
|
||||
|
||||
Reference in New Issue
Block a user