修复addhp问题
This commit is contained in:
parent
2275361655
commit
395b88b995
@ -303,7 +303,7 @@ export class Skill {
|
||||
handleHP(effvalue: number, tgt: SkillTarget){
|
||||
let efftype = SkillEffectType.HURT_HP;
|
||||
if(tgt.dsttype == GameUnitType.PLAYER || tgt.dsttype == GameUnitType.HERO){
|
||||
let n = tgt.dst.addHp(effvalue);
|
||||
let n = tgt.dst.addHP(effvalue);
|
||||
tgt.success(efftype, n);
|
||||
}else{
|
||||
tgt.fail(efftype, -1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user