From 65bd59f93baeb337abad46defb9e7fdeeb4e94d5 Mon Sep 17 00:00:00 2001 From: luying Date: Thu, 14 Jan 2021 19:17:47 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=AE=A1=E7=AE=97=E9=98=9F=E4=BC=8D?= =?UTF-8?q?=E7=AD=89=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/servers/battle/handler/pvpHandler.ts | 1 - shared/pubUtils/data.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/game-server/app/servers/battle/handler/pvpHandler.ts b/game-server/app/servers/battle/handler/pvpHandler.ts index b51037a69..5b6066c5b 100644 --- a/game-server/app/servers/battle/handler/pvpHandler.ts +++ b/game-server/app/servers/battle/handler/pvpHandler.ts @@ -250,7 +250,6 @@ export class PvpHandler { let { attackInfo, showHeroScores, addSumScore } = myRecInfo score += addSumScore; - if(score > hisScore) hisScore = score; let pLv = getLvByScore(heroScores); const defenseInfo = await generPVPOppRecInfo(isSuccess, curOpp, oppHeroes, role.lv); diff --git a/shared/pubUtils/data.ts b/shared/pubUtils/data.ts index b7ff4fe23..bb3c79fc7 100644 --- a/shared/pubUtils/data.ts +++ b/shared/pubUtils/data.ts @@ -272,7 +272,7 @@ export function getFuncsSwitch(id:number) { export function getPLvByScore(score: number) { let lv = 0; for(let {teamLv, topFiveMin, topFiveMax} of gameData.pvpTeamLevel) { - if(score > topFiveMin) lv = teamLv; + if(score >= topFiveMin) lv = teamLv; if(score < topFiveMax) break; } return lv;