refactor(伤害系统): 将caster从HeroViewComp改为使用casterEid

统一伤害系统中施法者的标识方式,从直接使用HeroViewComp改为使用实体ID(casterEid)
修复反伤逻辑中可能存在的空指针问题
This commit is contained in:
walkpan
2026-01-06 14:28:48 +08:00
parent 31321a1a45
commit 974a6d26b2
3 changed files with 15 additions and 15 deletions

View File

@@ -163,7 +163,7 @@ export class SkillView extends CCComp {
DamageQueueHelper.addDamageToEntity(
target.ent,
this.sData.Attrs,
this.sData.caster,
this.sData.casterEid,
this.sData.s_uuid,
this.sData.ext_dmg,
this.sData.dmg_ratio,