From 0ba10b6bf801c11181cc7894ce0c6a812152bc8a Mon Sep 17 00:00:00 2001 From: luying Date: Fri, 12 May 2023 18:08:35 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(pvp):=20=E9=98=B2=E5=AE=88?= =?UTF-8?q?=E9=98=B5=E5=AE=B9=E8=AE=BE=E7=BD=AE=E7=9A=84=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=97=A0=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/pvpService.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/game-server/app/services/pvpService.ts b/game-server/app/services/pvpService.ts index 6e8a231cd..168ad2c39 100644 --- a/game-server/app/services/pvpService.ts +++ b/game-server/app/services/pvpService.ts @@ -248,6 +248,7 @@ async function generPlayerOppHis(pvpdefense: PvpDefenseType, roleId: string, pos heroInfo.setAttribute(attribute); let enemy = new PvpEnemies(warJson, heroInfo, hs ? hs.score : 0, ce); enemy.setOutIndex(h.order); + enemy.initial_ai = h.ai; heroes.push(enemy); defCe += ce; }