fix(fightc): 修复技能攻击中效果命中的判断逻辑

将技能攻击中效果命中的判断逻辑从 a.AttackTime != 0 修改为
attacker.AttackValue.AttackTime != 0,以确保效果命中判断的准确性。
This commit is contained in:
2025-11-14 07:22:16 +08:00
parent 58a2e227fd
commit 6920fb99ef

View File

@@ -72,7 +72,7 @@ func (f *FightC) processSkillAttack(attacker, defender *input.Input, a *info.Ski
// attacker.AddEffects(attacker.EffectCache...) //命中再添加效果
for _, e := range attacker.EffectCache {
//这里实现应该参考本地技能是否命中,然后
e.Hit(a.AttackTime != 0) //我方效果命中
e.Hit(attacker.AttackValue.AttackTime != 0) //我方效果命中
}
// 扣减防御方血量