fix(技能系统): 修复治疗和护盾效果不触发的问题并调整技能配置
修改SACastSystem中add_hp和add_shield方法的参数,使治疗和护盾效果能够正确触发 调整技能6102和6103的配置,包括冷却时间和buff类型
This commit is contained in:
@@ -197,15 +197,15 @@ export const SkillSet: Record<number, SkillConfig> = {
|
||||
},
|
||||
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秒",
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
@@ -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}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user