This commit is contained in:
yuexin 2020-12-09 19:55:02 +08:00
parent 0f087949b5
commit 72e59f80a8

View File

@ -86,7 +86,7 @@ export class PlayerHandler {
(idx >= 0) && this._pets.splice(idx, 1);
};
public getPet(pet: Pet){
public getPet(pet: Pet): PetHandler{
return this._pets.find((item:PetHandler)=>{
return item._pet == pet;
})