diff --git a/assets/script/game/common/config/SkillSet.ts b/assets/script/game/common/config/SkillSet.ts index a43fc36a..bedc8a21 100644 --- a/assets/script/game/common/config/SkillSet.ts +++ b/assets/script/game/common/config/SkillSet.ts @@ -233,7 +233,7 @@ export const SkillSet: Record = { buffs:[],debuffs:[],info:"对前方单个目标造成100%攻击的伤害", }, 6008: { - uuid:6008,name:"光箭",sp_name:"arrow_big_yellow",icon:"1135",TGroup:TGroup.Enemy,TType:TType.Frontline,readyAnm:"",endAnm:"",act:"atk",DTType:DTType.single, + uuid:6008,name:"光箭",sp_name:"arrow_big_yellow",icon:"1135",TGroup:TGroup.Enemy,TType:TType.Frontline,readyAnm:"",endAnm:"",act:"max",DTType:DTType.single, ap:100,hit_count:6,hitcd:0.2,speed:720,with:0, ready:0,EAnm:0,DAnm:9001,RType:RType.linear,EType:EType.collision, buffs:[],debuffs:[],info:"对前方单个目标造成100%攻击的伤害", diff --git a/assets/script/game/hero/HeroAnmComp.ts b/assets/script/game/hero/HeroAnmComp.ts index a465dea9..1dee75c5 100644 --- a/assets/script/game/hero/HeroAnmComp.ts +++ b/assets/script/game/hero/HeroAnmComp.ts @@ -42,22 +42,28 @@ export default class HeroAnmComp extends Component{ this.default_anim='move' } atk () { - if(this.anmcon.getState("max0").isPlaying) return + if(this.anmcon.getState("max0").isPlaying||this.anmcon.getState("max1").isPlaying) return const atkName = `atk${this._atkIndex}` this.anmcon.play(atkName) this._atkIndex = (this._atkIndex + 1) % 3 } max () { - if(this.anmcon.getState("max0").isPlaying) return + if(this.anmcon.getState("max0").isPlaying||this.anmcon.getState("max1").isPlaying) return this.anmcon.play("max0") } + play(anm:string=""){ + if(anm==="") return + if(this.anmcon.getState("max0").isPlaying||this.anmcon.getState("max1").isPlaying) return + this.anmcon.play(anm) + } + idle () { if(this.anmcon.getState("idle").isPlaying) return this.anmcon.play("idle") this.default_anim='idle' } buff(){ - if(this.anmcon.getState("max0").isPlaying) return + if(this.anmcon.getState("max0").isPlaying||this.anmcon.getState("max1").isPlaying) return this.anmcon.play("buff") } dead(){