fix(战斗): 调整技能攻击参数和冰冻逻辑
- 提高部分技能攻击的Y轴偏移量,优化命中判定 - 将冰冻基础时间从1秒调整为3秒,增强控制效果 - 修复冰冻时间叠加逻辑,改为取最大值避免重复叠加 - 修复冰冻触发条件,避免对已冰冻目标重复触发 - 调整英雄进度条总长度,优化UI显示
This commit is contained in:
@@ -117,7 +117,8 @@ export class HeroAttrsComp extends ecs.Comp {
|
||||
|
||||
|
||||
toFrost(time: number=1) {
|
||||
this.frost_end_time += FightSet.FROST_TIME*time;
|
||||
const frostTime = FightSet.FROST_TIME * time;
|
||||
this.frost_end_time = Math.max(this.frost_end_time, frostTime);
|
||||
}
|
||||
|
||||
updateCD(dt: number){
|
||||
|
||||
Reference in New Issue
Block a user