寻宝:修复参与寻宝条件
This commit is contained in:
@@ -109,7 +109,7 @@ export class ComBattleHandler {
|
||||
return resResult(STATUS.COM_BATTLE_IS_RUNNING);
|
||||
}
|
||||
|
||||
if (!comBtlLvInvalid(playerLv, lvs)) {
|
||||
if (comBtlLvInvalid(playerLv, lvs)) {
|
||||
return resResult(STATUS.COM_BATTLE_ASSIST_LV_NOT_ENOUGH);
|
||||
}
|
||||
|
||||
|
||||
@@ -327,9 +327,9 @@ export function comBtlLvInvalid(playerLv: number, blueprtLvs: number[]) {
|
||||
const range = gameData.comBtlLvRange.get(blueprtLv);
|
||||
if (!range) return true;
|
||||
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>) {
|
||||
|
||||
Reference in New Issue
Block a user