fix: pet from pos 1

This commit is contained in:
yuexin 2020-12-04 21:36:45 +08:00
parent f3c619f162
commit 24b62f39dd

View File

@ -58,9 +58,11 @@ export class PlayerHandler {
let pr = null;
let n = 0;
for(let [key, obj] of this._player.pets){
if(obj.ap == 0){
res = obj;
break;
if(n != 0){
if(obj.ap == 0){
res = obj;
break;
}
}
++n;
}