更新随从时, 根据ap更新state

This commit is contained in:
zhl 2020-12-10 11:24:07 +08:00
parent 016b71153a
commit d1bebaa017

View File

@ -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) {