修订吸血问题
This commit is contained in:
parent
fd8fbe74bb
commit
cd70de55ab
@ -478,7 +478,11 @@ export class PetHandler {
|
||||
};
|
||||
|
||||
public HPS(value: number): number{
|
||||
return this._hps * Math.abs(value);
|
||||
let res = this._hps * Math.abs(value);
|
||||
if(res > 0){
|
||||
this.addBaseAP(res, this);
|
||||
}
|
||||
return res;
|
||||
};
|
||||
|
||||
public summonPet(petid: number, count: number = 1, exparam: SkillParam):number{
|
||||
|
@ -516,7 +516,7 @@ export class Skill {
|
||||
handleHPS(effvalue: number, tgt: SkillTarget){
|
||||
let efftype = SkillEffectType.HP_STEAL_ENHANCE;
|
||||
if(tgt.dsttype != GameUnitType.NONE){
|
||||
let effv = effvalue;
|
||||
let effv = effvalue/100;
|
||||
let n = tgt.dst.addHPS(effv);
|
||||
tgt.success(efftype, n);
|
||||
}else{
|
||||
|
Loading…
x
Reference in New Issue
Block a user