完善代码

This commit is contained in:
yuexin 2021-02-01 14:37:03 +08:00
parent afeb8ed084
commit fad89fc4e4
2 changed files with 2 additions and 1 deletions

Binary file not shown.

View File

@ -213,6 +213,7 @@ export class PlayerHandler {
if(oldpet && CfgMan.hasSummonPetSkill(lst)){
this.delPet(oldpet);
}
obj.srcpet = this._self;
this.useSkills(lst, obj);
}
return true;
@ -559,7 +560,7 @@ export class PlayerHandler {
if(!from){
console.log('[error]behurt not from!' + value);
}
this.singleCheckSkills(apet, TriggerType.BE_HURT, from._owner);
this.singleCheckSkills(apet, TriggerType.BE_HURT, from? from._owner: null);
};
public onShieldUsed(apet: PetHandler){