修订报错问题
This commit is contained in:
parent
6f5c3384c4
commit
b7c4ad49b7
@ -46,10 +46,10 @@ export class PlayerHandler {
|
||||
};
|
||||
|
||||
public clear(bresetAll: boolean = false){
|
||||
this._self = null;
|
||||
this._pets.forEach((item: PetHandler)=>{
|
||||
item.clear(bresetAll);
|
||||
});
|
||||
this._self = null;
|
||||
this._pets.length = 0;
|
||||
};
|
||||
|
||||
@ -326,7 +326,7 @@ export class PlayerHandler {
|
||||
};
|
||||
|
||||
public die(){
|
||||
this.clear();
|
||||
this.clear(true);
|
||||
//todo:
|
||||
};
|
||||
|
||||
@ -427,7 +427,7 @@ export class PlayerHandler {
|
||||
}
|
||||
});
|
||||
|
||||
if(this._self != apet){
|
||||
if(this._self && this._self != apet){
|
||||
if(this._self.removeEffHalo(apet)){
|
||||
lst.push(this._self);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user