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

@@ -65,7 +65,7 @@ export const SkillSet={
in:1,count:1,apup:0,ap:2,hp:0,cd:1,shield:0,speed:300,},
6017:{uuid: 6017,path: "6017",type: 91,tg:1,debuff:0,depb:50,debtime:2,derate:1,name: "治愈术",sp_name:"heath",info:"释放一个寒冰箭攻击敌人",
in:0.5,count:1,apup:0,ap:1,hp:3,shield:0,speed:450, },
in:1,count:1,apup:0,ap:1,hp:3,shield:0,speed:450, },
6018:{uuid: 6018,path: "6018",type: 91,tg:0,debuff:0,depb:50,debtime:2,derate:1,name: "魔法盾",sp_name:"shield",info:"释放一个寒冰箭攻击敌人",
in:0.8,count:1,apup:0,ap:1,hp:0,cd:1,shield:1,speed:450, },

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)