buff 路径需要修复

This commit is contained in:
2025-01-07 08:05:22 +08:00
parent ca5adce589
commit 24dd6e973d
4 changed files with 12 additions and 10 deletions

View File

@@ -567,6 +567,8 @@ export class HeroViewComp extends CCComp {
console.log("to_add_buff:"+hero.hero_name+" "+sk);
let is_crit=this.check_crit()
skill.load(pos,this.box_group,this.node,sk,this.ap_max,t_pos,is_crit,this.crit_add);
console.log(this.scale+this.hero_name+"使用buff:"+sk+" t_pos:"+t_pos+" box:"+this.box_group,);
if(SkillSet[sk].hp > 0){ //buff加血
let increase_hp=Math.floor(SkillSet[sk].hp*this.ap_max)
hero.add_hp(increase_hp)