From d1bebaa017f2db09f84ecd68c11a53cb4ab5126c Mon Sep 17 00:00:00 2001 From: zhl Date: Thu, 10 Dec 2020 11:24:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=9A=8F=E4=BB=8E=E6=97=B6,?= =?UTF-8?q?=20=E6=A0=B9=E6=8D=AEap=E6=9B=B4=E6=96=B0state?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rooms/RoomExtMethod.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rooms/RoomExtMethod.ts b/src/rooms/RoomExtMethod.ts index 3e2fcc2..965cc81 100644 --- a/src/rooms/RoomExtMethod.ts +++ b/src/rooms/RoomExtMethod.ts @@ -136,7 +136,7 @@ Object.defineProperties(Room.prototype, { pet.extAp = obj.extAp; pet.harmReduce = obj.harmReduce; pet.skills.length = 0; - pet.state = 1; + pet.state = obj.ap <=0 ? 2: 1; if (obj.skills) { pet.skills.length = 0; for (let s of obj.skills) {