完善代码
This commit is contained in:
parent
afeb8ed084
commit
fad89fc4e4
BIN
doc/细化.xmind
BIN
doc/细化.xmind
Binary file not shown.
@ -213,6 +213,7 @@ export class PlayerHandler {
|
|||||||
if(oldpet && CfgMan.hasSummonPetSkill(lst)){
|
if(oldpet && CfgMan.hasSummonPetSkill(lst)){
|
||||||
this.delPet(oldpet);
|
this.delPet(oldpet);
|
||||||
}
|
}
|
||||||
|
obj.srcpet = this._self;
|
||||||
this.useSkills(lst, obj);
|
this.useSkills(lst, obj);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@ -559,7 +560,7 @@ export class PlayerHandler {
|
|||||||
if(!from){
|
if(!from){
|
||||||
console.log('[error]behurt not from!' + value);
|
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){
|
public onShieldUsed(apet: PetHandler){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user