寻宝:修复参与寻宝条件

This commit is contained in:
luying
2022-05-22 11:55:51 +08:00
parent 18b5092580
commit cec7f278b1
2 changed files with 3 additions and 3 deletions
@@ -109,7 +109,7 @@ export class ComBattleHandler {
return resResult(STATUS.COM_BATTLE_IS_RUNNING); return resResult(STATUS.COM_BATTLE_IS_RUNNING);
} }
if (!comBtlLvInvalid(playerLv, lvs)) { if (comBtlLvInvalid(playerLv, lvs)) {
return resResult(STATUS.COM_BATTLE_ASSIST_LV_NOT_ENOUGH); return resResult(STATUS.COM_BATTLE_ASSIST_LV_NOT_ENOUGH);
} }
+2 -2
View File
@@ -327,9 +327,9 @@ export function comBtlLvInvalid(playerLv: number, blueprtLvs: number[]) {
const range = gameData.comBtlLvRange.get(blueprtLv); const range = gameData.comBtlLvRange.get(blueprtLv);
if (!range) return true; if (!range) return true;
let { min, max } = range; let { min, max } = range;
if(playerLv < min || playerLv > max) return false; if(playerLv < min || playerLv > max) return true;
} }
return true return false
} }
export async function dismissTeam(teamStatus: MemComBtlTeam, teamMap: Map<string, MemComBtlTeam>, roleId: string, teamDisTimer: Map<string, NodeJS.Timer>) { export async function dismissTeam(teamStatus: MemComBtlTeam, teamMap: Map<string, MemComBtlTeam>, roleId: string, teamDisTimer: Map<string, NodeJS.Timer>) {