diff --git a/assets/script/game/hero/HeroAtk.ts b/assets/script/game/hero/HeroAtk.ts index 69a6d640..b92b7a30 100644 --- a/assets/script/game/hero/HeroAtk.ts +++ b/assets/script/game/hero/HeroAtk.ts @@ -105,8 +105,6 @@ export class HeroAtkSystem extends ecs.ComblockSystem implements ecs.ISystemUpd // 获取攻击者数据 const caster = damageEvent.caster; - const casterModel = caster.ent.get(HeroAttrsComp); - if (!casterModel) return reDate; // 获取技能配置 const skillConf = SkillSet[damageEvent.s_uuid]; diff --git a/assets/script/game/skill/Skill.ts b/assets/script/game/skill/Skill.ts index 2b9f5c4e..7e83fcca 100644 --- a/assets/script/game/skill/Skill.ts +++ b/assets/script/game/skill/Skill.ts @@ -90,7 +90,7 @@ export class Skill extends ecs.Entity { const sDataCom = this.get(SDataCom); sDataCom.group=caster.box_group sDataCom.caster=caster - sDataCom.Attrs=cAttrsComp.Attrs + sDataCom.Attrs={...cAttrsComp.Attrs} sDataCom.s_uuid=s_uuid sDataCom.fac=cAttrsComp.fac }