🐞 fix(防破解): 扫荡也添加上等级限制
This commit is contained in:
@@ -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 = {};
|
||||
|
||||
Reference in New Issue
Block a user