导表+修订光环问题

This commit is contained in:
yuexin 2021-02-24 19:04:54 +08:00
parent 373eb688fa
commit 61a914e08b
3 changed files with 2 additions and 17 deletions

File diff suppressed because one or more lines are too long

View File

@ -547,7 +547,7 @@ export class PetHandler {
this._halos.forEach((item: Skill)=>{
if(item.canEffect(this, apet)){
if(item.isAPHaloSkill()){
res += apet.addExAP(item.getEffValue(), item, this); // 加战力
res += apet.addExAP(item.getHaloValue(), item, this); // 加战力
}else if(item.isBuffHaloSkill()){
item.trigger(new SkillParam(0, 0, 0, this._owner,
this, apet._owner, apet)); // 触发技能

View File

@ -269,21 +269,6 @@ export class Skill {
return this.halo_v;
};
addHaloValue(v: number): number{
this.checkHaloValue();
if(this.halo_v > 0){
let tmp = this.halo_v;
this.halo_v += v;
if(this.halo_v < 0){
this.halo_v = 0;
return -tmp;
}else{
return v;
}
}
return 0;
};
resetHaloValue(){
this.halo_v = -1;
};