初始化player时, pet state置为0

This commit is contained in:
zhl 2020-12-07 15:25:56 +08:00
parent 0bb7e45e56
commit 56feded001

View File

@ -67,6 +67,7 @@ export class Player extends Schema {
this.countPresent = 0;
for (let i = 0; i < singleton(GameEnv).maxPlayerPetCount + 1; i++) {
let pet = new Pet();
pet.state = 0;
pet.isHero = i === 0;
this.pets.set(i+'', pet);