初始化player时, pet state置为0
This commit is contained in:
parent
0bb7e45e56
commit
56feded001
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user