From 76459adbb26bce70d6b7fe3948fa6cda85bf690e Mon Sep 17 00:00:00 2001 From: luying Date: Mon, 7 Aug 2023 13:27:45 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(=E9=95=87=E5=BF=B5=E5=A1=94)?= =?UTF-8?q?:=20=E4=BF=AE=E5=A4=8D=E4=BD=BF=E7=94=A8=E7=9A=AE=E8=82=A4?= =?UTF-8?q?=E6=AD=A6=E5=B0=86=E9=98=B5=E8=90=A5=E8=BF=98=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E5=8E=9F=E6=AD=A6=E5=B0=86=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/battleService.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/game-server/app/services/battleService.ts b/game-server/app/services/battleService.ts index ba28e63ab..4cc820b50 100644 --- a/game-server/app/services/battleService.ts +++ b/game-server/app/services/battleService.ts @@ -74,7 +74,7 @@ export function getTowerHeroCe(warId: number, heroes: HeroType[], recHeroes: num let dicWar = gameData.war.get(warId); let heroNum = 0, heroesCeSum = 0; for(let hero of heroes) { - if(recHeroes.indexOf(hero.hid) == -1 && !checkForbiddenChar(hero.hid, hero.job, dicWar.fobiddenCharactor)) { + if(recHeroes.indexOf(hero.hid) == -1 && !checkForbiddenChar(hero.skinId, hero.job, dicWar.fobiddenCharactor)) { heroNum++; heroesCeSum += hero.ce; } @@ -207,8 +207,8 @@ export async function checkTowerWar(roleId: string, battleId: number, seqIds: nu return { status: -1, resResult: resResult(STATUS.TOWER_DUPLICATE_HERO) }; } } - for(let {hid, job} of heroes) { - if(checkForbiddenChar(hid, job, fobiddenCharactor)) { + for(let {skinId, job} of heroes) { + if(checkForbiddenChar(skinId, job, fobiddenCharactor)) { return { status: -1, resResult: resResult(STATUS.TOWER_HERO_FORBIDDEN) }; } }