From 3963a8f3ba1df0e2a1930cddd45f0bfaf897961c Mon Sep 17 00:00:00 2001 From: panw Date: Thu, 26 Mar 2026 16:30:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=88=98=E6=96=97):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E6=8A=80=E8=83=BD=E6=94=BB=E5=87=BB=E5=8F=82=E6=95=B0=E5=92=8C?= =?UTF-8?q?=E5=86=B0=E5=86=BB=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 提高部分技能攻击的Y轴偏移量,优化命中判定 - 将冰冻基础时间从1秒调整为3秒,增强控制效果 - 修复冰冻时间叠加逻辑,改为取最大值避免重复叠加 - 修复冰冻触发条件,避免对已冰冻目标重复触发 - 调整英雄进度条总长度,优化UI显示 --- assets/resources/game/heros/top.prefab | 4 ++-- assets/resources/game/skill/atk/arrow.prefab | 2 +- assets/resources/game/skill/atk/arrow_blue.prefab | 2 +- assets/resources/game/skill/atk/arrow_red.prefab | 2 +- assets/resources/game/skill/atk/ball_blue.prefab | 2 +- assets/resources/game/skill/atk/ball_red.prefab | 2 +- assets/resources/game/skill/atk/ball_zi.prefab | 2 +- assets/script/game/common/config/GameSet.ts | 2 +- assets/script/game/hero/HeroAtkSystem.ts | 9 ++++++--- assets/script/game/hero/HeroAttrsComp.ts | 3 ++- 10 files changed, 17 insertions(+), 13 deletions(-) diff --git a/assets/resources/game/heros/top.prefab b/assets/resources/game/heros/top.prefab index b02a2a50..6e768824 100644 --- a/assets/resources/game/heros/top.prefab +++ b/assets/resources/game/heros/top.prefab @@ -1239,7 +1239,7 @@ "__id__": 36 }, "_mode": 0, - "_totalLength": 70, + "_totalLength": 50, "_progress": 1, "_reverse": false, "_id": "" @@ -1769,7 +1769,7 @@ "__id__": 60 }, "_mode": 0, - "_totalLength": 70, + "_totalLength": 50, "_progress": 1, "_reverse": false, "_id": "" diff --git a/assets/resources/game/skill/atk/arrow.prefab b/assets/resources/game/skill/atk/arrow.prefab index 7624cd78..d0dc35f9 100644 --- a/assets/resources/game/skill/atk/arrow.prefab +++ b/assets/resources/game/skill/atk/arrow.prefab @@ -281,7 +281,7 @@ "__id__": 13 }, "atk_x": 10, - "atk_y": 15, + "atk_y": 25, "debugMode": false, "_id": "" }, diff --git a/assets/resources/game/skill/atk/arrow_blue.prefab b/assets/resources/game/skill/atk/arrow_blue.prefab index 7f87505f..4a4ade07 100644 --- a/assets/resources/game/skill/atk/arrow_blue.prefab +++ b/assets/resources/game/skill/atk/arrow_blue.prefab @@ -281,7 +281,7 @@ "__id__": 13 }, "atk_x": 10, - "atk_y": 15, + "atk_y": 25, "debugMode": false, "_id": "" }, diff --git a/assets/resources/game/skill/atk/arrow_red.prefab b/assets/resources/game/skill/atk/arrow_red.prefab index c2ccf723..b022c43a 100644 --- a/assets/resources/game/skill/atk/arrow_red.prefab +++ b/assets/resources/game/skill/atk/arrow_red.prefab @@ -281,7 +281,7 @@ "__id__": 13 }, "atk_x": 10, - "atk_y": 15, + "atk_y": 25, "debugMode": true, "_id": "" }, diff --git a/assets/resources/game/skill/atk/ball_blue.prefab b/assets/resources/game/skill/atk/ball_blue.prefab index 69a554bd..234d4529 100644 --- a/assets/resources/game/skill/atk/ball_blue.prefab +++ b/assets/resources/game/skill/atk/ball_blue.prefab @@ -281,7 +281,7 @@ "__id__": 13 }, "atk_x": 10, - "atk_y": 15, + "atk_y": 20, "debugMode": true, "_id": "" }, diff --git a/assets/resources/game/skill/atk/ball_red.prefab b/assets/resources/game/skill/atk/ball_red.prefab index 76c57bbd..b2ce5b8f 100644 --- a/assets/resources/game/skill/atk/ball_red.prefab +++ b/assets/resources/game/skill/atk/ball_red.prefab @@ -281,7 +281,7 @@ "__id__": 13 }, "atk_x": 10, - "atk_y": 15, + "atk_y": 25, "debugMode": true, "_id": "" }, diff --git a/assets/resources/game/skill/atk/ball_zi.prefab b/assets/resources/game/skill/atk/ball_zi.prefab index 664f3958..c2da6d36 100644 --- a/assets/resources/game/skill/atk/ball_zi.prefab +++ b/assets/resources/game/skill/atk/ball_zi.prefab @@ -281,7 +281,7 @@ "__id__": 13 }, "atk_x": 10, - "atk_y": 15, + "atk_y": 20, "debugMode": true, "_id": "" }, diff --git a/assets/script/game/common/config/GameSet.ts b/assets/script/game/common/config/GameSet.ts index f2668e3a..c512f1cb 100644 --- a/assets/script/game/common/config/GameSet.ts +++ b/assets/script/game/common/config/GameSet.ts @@ -80,7 +80,7 @@ export enum FightSet { BACK_RANG=30,//后退范围 FiIGHT_TIME=60*10,//战斗时间 BACK_CHANCE=40,//击退概率 - FROST_TIME=1,//冰冻时间 + FROST_TIME=3,//冰冻时间 } diff --git a/assets/script/game/hero/HeroAtkSystem.ts b/assets/script/game/hero/HeroAtkSystem.ts index b26967ac..d859d5ce 100644 --- a/assets/script/game/hero/HeroAtkSystem.ts +++ b/assets/script/game/hero/HeroAtkSystem.ts @@ -150,13 +150,16 @@ export class HeroAtkSystem extends ecs.ComblockSystem implements ecs.ISystemUpd // 击退和冰冻判定 const isBack = this.checkChance((damageEvent.Attrs[Attrs.back_chance] || 0)); - const isFrost = this.checkChance(damageEvent.Attrs[Attrs.freeze_chance]); + const freezeChance = damageEvent.Attrs[Attrs.freeze_chance] || 0; + const isFrost = !TAttrsComp.isFrost() && this.checkChance(freezeChance); // ✅ 触发视图层表现(伤害数字、受击动画、后退,冰冻) if (targetView) { targetView.do_atked(damage, isCrit, damageEvent.s_uuid, isBack); targetView.playEnd(skillConf.endAnm); - if(isFrost) TAttrsComp.toFrost(); - targetView.in_iced(TAttrsComp.frost_end_time); + if (isFrost) { + TAttrsComp.toFrost(); + targetView.in_iced(TAttrsComp.frost_end_time); + } } diff --git a/assets/script/game/hero/HeroAttrsComp.ts b/assets/script/game/hero/HeroAttrsComp.ts index 29b2d39c..fdd893b5 100644 --- a/assets/script/game/hero/HeroAttrsComp.ts +++ b/assets/script/game/hero/HeroAttrsComp.ts @@ -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){