伤害系统有问题,打算放弃

This commit is contained in:
2025-02-03 15:03:45 +08:00
parent 8f2612bda2
commit 060046a6a6
18 changed files with 549 additions and 112 deletions

View File

@@ -206,6 +206,7 @@ export class HeroSkillSystem extends ecs.ComblockSystem implements ecs.ISystemUp
req.source = caster;
req.target = target;
req.baseValue = caster.get(HeroViewComp).ap * (config.ap / 100);
req.delay = config.hited; // 添加命中延迟时间(秒)用于同步动画与伤害
// 播放技能特效
caster.get(HeroViewComp).playSkillEffect(config.uuid);