更新随从时, 根据ap更新state
This commit is contained in:
parent
016b71153a
commit
d1bebaa017
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user