技能动画 继续完善

This commit is contained in:
2025-01-10 16:50:18 +08:00
parent 58fa6e0aa3
commit 56832c41fe
52 changed files with 786 additions and 695 deletions

View File

@@ -334,6 +334,13 @@ export class HeroViewComp extends CCComp {
l_hp=l_hp*(100+luck)/100
return Math.ceil(l_hp)
}
/**
* 检查并处理英雄受到的减益效果debuff
* 根据技能的不同减益类型,执行相应的逻辑,如冰冻、燃烧等。
*
* @param skill - 包含减益效果信息的技能对象
* @param l_hp - 可选参数表示英雄的当前生命值默认为0
*/
check_debuff(skill:any,l_hp:number=0){
console.log(this.hero_name+":"+this.uuid+"check_debuff "+skill.debuff);
if(skill.debuff == 0) return