🐞 fix(防破解): 扫荡也添加上等级限制

This commit is contained in:
luying
2023-06-21 15:50:23 +08:00
parent d71166f8bc
commit d3dd2b3c3e

View File

@@ -331,6 +331,9 @@ export class NormalBattleHandler {
return resResult(STATUS.BATTLE_SWEEP_CONDITION_STAR);
}
let role = await RoleModel.findByRoleId(roleId, 'lv warCount refWarCount roleId');
if(role.lv < warInfo.lvLimited) {
return resResult(STATUS.COM_BATTLE_LV_NOT_ENOUGH);
}
// 扫荡次数
let dailyNum = {};
let dungeonNum = {};