From fa0c6dbf948203e8521c8b7e3bb7afec2bf1de30 Mon Sep 17 00:00:00 2001 From: walkpan Date: Thu, 1 Jan 2026 15:06:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8A=80=E8=83=BD=E7=B3=BB=E7=BB=9F):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B2=BB=E7=96=97=E5=92=8C=E6=8A=A4=E7=9B=BE?= =?UTF-8?q?=E6=95=88=E6=9E=9C=E4=B8=8D=E8=A7=A6=E5=8F=91=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E5=B9=B6=E8=B0=83=E6=95=B4=E6=8A=80=E8=83=BD=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改SACastSystem中add_hp和add_shield方法的参数,使治疗和护盾效果能够正确触发 调整技能6102和6103的配置,包括冷却时间和buff类型 --- assets/script/game/common/config/SkillSet.ts | 6 +++--- assets/script/game/hero/SACastSystem.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/script/game/common/config/SkillSet.ts b/assets/script/game/common/config/SkillSet.ts index d596962a..75ef3de6 100644 --- a/assets/script/game/common/config/SkillSet.ts +++ b/assets/script/game/common/config/SkillSet.ts @@ -197,15 +197,15 @@ export const SkillSet: Record = { }, 6102:{ uuid:6102,name:"强壮",sp_name:"buff_wind",icon:"3036",TGroup:TGroup.Team,SType:SType.buff,act:"atk",DTType:DTType.single,DType:DType.WIND, - ap:30,map:0,cd:9,t_num:1,hit_num:1,hit:1,hitcd:0.2,speed:720,cost:10,with:0,dis:720, + ap:30,map:0,cd:10,t_num:1,hit_num:1,hit:1,hitcd:0.2,speed:720,cost:10,with:0,dis:720, ready:0,EAnm:0,DAnm:9001,RType:RType.fixed,EType:EType.animationEnd, - buffs:[{buff:Attrs.AP,BType:BType.RATIO,value:0.1,time:30,chance:1}],neAttrs:[],info:"增加目标10%攻击力,持续30秒", + buffs:[{buff:Attrs.AP,BType:BType.VALUE,value:10,time:30,chance:1}],neAttrs:[],info:"增加目标10%攻击力,持续30秒", }, 6103:{ uuid:6103,name:"群体强壮",sp_name:"buff_wind",icon:"3036",TGroup:TGroup.Team,SType:SType.buff,act:"atk",DTType:DTType.range,DType:DType.WIND, ap:30,map:0,cd:10,t_num:3,hit_num:1,hit:1,hitcd:0.2,speed:720,cost:10,with:0,dis:720, ready:0,EAnm:0,DAnm:9001,RType:RType.fixed,EType:EType.animationEnd, - buffs:[{buff:Attrs.AP,BType:BType.RATIO,value:0.1,time:30,chance:1}],neAttrs:[],info:"增加目标10%攻击力,持续30秒", + buffs:[{buff:Attrs.AP,BType:BType.RATIO,value:10,time:30,chance:1}],neAttrs:[],info:"增加目标10%攻击力,持续30秒", }, }; diff --git a/assets/script/game/hero/SACastSystem.ts b/assets/script/game/hero/SACastSystem.ts index fb0647ce..d2dd076e 100644 --- a/assets/script/game/hero/SACastSystem.ts +++ b/assets/script/game/hero/SACastSystem.ts @@ -493,7 +493,7 @@ export class SACastSystem extends ecs.ComblockSystem implements ecs.ISystemUpdat const targetView = targetEntity.get(HeroViewComp); if (!targetAttrs || !targetView) continue; - targetAttrs.add_hp(healAmount, false); + targetAttrs.add_hp(healAmount, true); targetView.health(healAmount); console.log(`[SACastSystem] 治疗生效: 施法者=${casterEntity.get(HeroAttrsComp)?.hero_name}, 技能=${config.name}, 目标=${targetAttrs.hero_name}, 治疗量=${healAmount}`); } @@ -522,7 +522,7 @@ export class SACastSystem extends ecs.ComblockSystem implements ecs.ISystemUpdat const targetView = targetEntity.get(HeroViewComp); if (!targetAttrs || !targetView) continue; - targetAttrs.add_shield(shieldAmount, false); + targetAttrs.add_shield(shieldAmount, true); targetView.add_shield(shieldAmount); console.log(`[SACastSystem] 护盾生效: 施法者=${casterEntity.get(HeroAttrsComp)?.hero_name}, 技能=${config.name}, 目标=${targetAttrs.hero_name}, 护盾量=${shieldAmount}`); }