diff --git a/AscNet.GameServer/Handlers/FightModule.cs b/AscNet.GameServer/Handlers/FightModule.cs
index 3672e989..ac7e0afc 100644
--- a/AscNet.GameServer/Handlers/FightModule.cs
+++ b/AscNet.GameServer/Handlers/FightModule.cs
@@ -146,6 +146,8 @@ namespace AscNet.GameServer.Handlers
return;
}
+ var levelControl = TableReaderV2.Parse
().Where(x => x.StageId == stageTable.StageId).OrderBy(x => Math.Abs(session.player.PlayerData.Level - x.MaxLevel)).FirstOrDefault();
+
PreFightResponse rsp = new()
{
Code = 0,
@@ -158,7 +160,8 @@ namespace AscNet.GameServer.Handlers
StageId = req.PreFightData.StageId,
RebootId = Miscs.ParseIntOr(stageTable.RebootId, 0),
PassTimeLimit = Miscs.ParseIntOr(stageTable.PassTimeLimit, 300),
- StarsMark = 0
+ StarsMark = 0,
+ MonsterLevel = levelControl?.MonsterLevel ?? new()
}
};
diff --git a/AscNet/Program.cs b/AscNet/Program.cs
index 69ea4c60..205e8986 100644
--- a/AscNet/Program.cs
+++ b/AscNet/Program.cs
@@ -2,8 +2,6 @@
using AscNet.GameServer.Handlers;
using AscNet.GameServer.Commands;
using AscNet.Logging;
-using AscNet.Common.Util;
-using AscNet.Table.V2.share.reward;
using Newtonsoft.Json;
namespace AscNet
@@ -19,7 +17,6 @@ namespace AscNet
#if DEBUG
if (Common.Common.config.VerboseLevel < Common.VerboseLevel.Debug)
Common.Common.config.VerboseLevel = Common.VerboseLevel.Debug;
- // LoggerFactory.Logger.Debug(JsonConvert.SerializeObject(TableReaderV2.Parse().Where(x => x.Id == null).SelectMany(x => x.SubIds)));
#endif
PacketFactory.LoadPacketHandlers();