This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-12-25 02:24:22 +08:00
parent 5366e3413c
commit ddde5a6a12
2 changed files with 4 additions and 2 deletions

View File

@@ -33,13 +33,13 @@ export default class GSkillCDNormal extends GSkillCDBase{
let end = () => {
this.role.fsmAnim.open();
this.role.fsmAnim.delEventListener("skillAttack",attack)
this.role.fsmAnim.delEndListener("skillAttack",end)
this.role.fsmAnim.delEndListener("skill",end)
}
//监听伤害
this.role.fsmAnim.addEventListener("skillAttack",attack)
//播放妙蛙种子技能
this.role.spine.setAnimation(0,"skill",false);
this.role.fsmAnim.addEndListener("skillAttack",end)
this.role.fsmAnim.addEndListener("skill",end)
return true;