修订死亡技能问题
This commit is contained in:
parent
fc57e1da34
commit
1fc5a9be00
@ -431,7 +431,7 @@ export class PlayerHandler {
|
||||
public onPetDied(apet: PetHandler): boolean{
|
||||
// 遗愿
|
||||
if(!apet.isSilent()){
|
||||
this.simpleCheckSkills(apet._dieSkills, true);
|
||||
this.simpleCheckSkills(apet._dieSkills, true, apet);
|
||||
}
|
||||
|
||||
if(apet.isAlive()){
|
||||
@ -555,6 +555,9 @@ export class PlayerHandler {
|
||||
};
|
||||
|
||||
public onBeHurt(apet: PetHandler, value: number, from: PetHandler){
|
||||
if(!from){
|
||||
console.log('[error]behurt not from!' + value);
|
||||
}
|
||||
this.singleCheckSkills(apet, TriggerType.BE_HURT, from._owner);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user