技能有bug 需要处理

This commit is contained in:
2025-08-12 11:02:16 +08:00
parent 1273ec6e99
commit 61cbd6e7bd
5 changed files with 382 additions and 505 deletions

View File

@@ -161,10 +161,23 @@ export class SkillCom extends CCComp {
onAnimationFinished(){
// console.log("[SkillCom]:onAnimationFinished",this.s_uuid)
if (!this.skillConfig) return;
if(this.skillConfig.EType==EType.timeEnd) return
if(this.skillConfig.SType!=SType.damage){
this.to_do_buff()
}
this.is_destroy=true
}
to_do_buff(){
if (!this.skillConfig) return;
switch(this.skillConfig.SType){
case SType.shield:
this.caster.add_shield(this.skillConfig.buV)
break;
}
}
//单体伤害
single_damage(target:HeroViewComp,is_range:boolean=false){
// //console.log("[SkillCom]:onBeginContact hit_count:",this.hit_count,SkillSet[this.s_uuid].hit)