This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-12-18 09:31:13 +08:00
parent 9a3f666df1
commit 300eb7d5d4
95 changed files with 4240 additions and 83 deletions

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "351d1081-04e5-4f12-9ce8-60416096a377",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,50 @@
import { TB } from "../../../../config/data/schema";
import GRoleAttack from "../../../base/common/GRoleAttack";
import GRoleBase from "../../../base/role/GRoleBase";
import GRoleDefault from "../../../base/role/GRoleDefault";
import GSkillAngerBase from "../../GSkillAngerBase";
import GSkillCDBase from "../../GSkillCDBase";
export default class GSkillCDNormal extends GSkillCDBase{
role:GRoleDefault;
info: TB.TbGRoleSkill;
bind(role:GRoleDefault,info: TB.TbGRoleSkill):GSkillCDNormal {
//技能冷却
this.cdTatal = parseInt(info.skillArgs[0]);
this.role = role;
this.info = info;
return this;
}
onRelease(): boolean {
let enemy = this.role.fsm.enemy;
//关闭动画管理器
this.role.fsmAnim.close();
let attack = () => {
if(!enemy.isDie){
GRoleAttack.onNormalAttack(this.role,enemy);
}
};
let end = () => {
this.role.fsmAnim.open();
this.role.fsmAnim.delEventListener("skillAttack",attack)
this.role.fsmAnim.delEndListener("skillAttack",end)
}
//监听伤害
this.role.fsmAnim.addEventListener("skillAttack",attack)
//播放妙蛙种子技能
this.role.spine.setAnimation(0,"skill",false);
this.role.fsmAnim.addEndListener("skillAttack",end)
return true;
}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "48700cdf-9095-426b-b9a1-894f14e47fb4",
"files": [],
"subMetas": {},
"userData": {}
}