导表+修订光环问题
This commit is contained in:
parent
373eb688fa
commit
61a914e08b
File diff suppressed because one or more lines are too long
@ -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)); // 触发技能
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user