From 3bfdf1639be58182d005620c34608e394d308665 Mon Sep 17 00:00:00 2001 From: panw Date: Thu, 21 May 2026 10:41:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=81=A2=E5=A4=8D=E6=80=AA=E7=89=A9?= =?UTF-8?q?=E5=92=8C=E8=8B=B1=E9=9B=84=E7=9A=84=E5=8F=AC=E5=94=A4=E6=8A=80?= =?UTF-8?q?=E8=83=BD=E9=85=8D=E7=BD=AE=E5=A4=8D=E5=88=B6=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复了heroSet.ts中注释掉的call字段注释,同时恢复了Hero和Monster类中对call技能配置的复制代码,让召唤技能触发逻辑正常生效 --- assets/script/game/common/config/heroSet.ts | 2 +- assets/script/game/hero/Hero.ts | 2 +- assets/script/game/hero/Mon.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/script/game/common/config/heroSet.ts b/assets/script/game/common/config/heroSet.ts index 9dcaa5a2..41c0b6f0 100644 --- a/assets/script/game/common/config/heroSet.ts +++ b/assets/script/game/common/config/heroSet.ts @@ -87,7 +87,7 @@ export interface heroInfo { type: HType; // 攻击定位(近战/中程/远程) hp: number; // 生命值上限 ap: number; // 攻击力 -// call?:number[]; // 召唤后触发的技能uuid列表 + call?:number[]; // 召唤后触发的技能uuid列表 dead?:number[]; // 死亡后触发的技能uuid列表 fstart?:number[]; // 战斗开始时释放的技能uuid列表 fend?:number[]; // 战斗结束时释放的技能uuid列表 diff --git a/assets/script/game/hero/Hero.ts b/assets/script/game/hero/Hero.ts index 0635a8ae..d8b2f068 100644 --- a/assets/script/game/hero/Hero.ts +++ b/assets/script/game/hero/Hero.ts @@ -114,7 +114,7 @@ export class Hero extends ecs.Entity { model.dis = hero.dis ?? 720; // 复制触发技能配置 - // model.call = hero.call; + model.call = hero.call; model.dead = hero.dead; model.fstart = hero.fstart; model.fend = hero.fend; diff --git a/assets/script/game/hero/Mon.ts b/assets/script/game/hero/Mon.ts index 978087e4..c12a2101 100644 --- a/assets/script/game/hero/Mon.ts +++ b/assets/script/game/hero/Mon.ts @@ -170,7 +170,7 @@ export class Monster extends ecs.Entity { model.dis = hero.dis ?? 720; // 复制触发技能配置 - // model.call = hero.call; + model.call = hero.call; model.dead = hero.dead; model.fstart = hero.fstart; model.fend = hero.fend;