yyl
2025-12-01 7746e45cd693d4ba83a422049026d8f2fd0c24dc
125 战斗 弹射问题修复
2个文件已修改
10 ■■■■■ 已修改文件
Main/System/Battle/SkillEffect/BulletCurve/BounceBulletCurve.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Battle/SkillEffect/BulletSkillEffect.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Battle/SkillEffect/BulletCurve/BounceBulletCurve.cs
@@ -45,8 +45,8 @@
        bulletTrans.anchoredPosition = pos;
        Vector2 dir = end - start;
        float angle = Mathf.Atan2(dir.y, dir.x) * Mathf.Rad2Deg - 90f;
        bulletTrans.localRotation = Quaternion.Euler(0, 0, angle);
        float angle = Mathf.Atan2(dir.y, dir.x) * Mathf.Rad2Deg + (caster.Camp == BattleCamp.Red ? 0 : 180);
        bulletTrans.rotation = Quaternion.Euler(0, 0, angle);
        if (t >= 1f)
        {
Main/System/Battle/SkillEffect/BulletSkillEffect.cs
@@ -382,6 +382,8 @@
        int bounceHitIndex = 0;
        int tempBulletIndex = bulletIndex;
        var bulletCurve = BulletCurveFactory.CreateBulletCurve(caster, skillConfig, effectPlayer, target.heroRectTrans, tagUseSkillAttack.HurtList.ToList(), bulletIndex, (index, hitList) =>
        {
            if (skillConfig.BulletPath == 4)
@@ -407,7 +409,7 @@
                // 表现子弹飞行到目标位置
                onHit?.Invoke(index, new List<HB427_tagSCUseSkill.tagSCUseSkillHurt> { hurt });
                if (bulletIndex == tagUseSkillAttack.HurtList.Length - 1)
                if (bounceHitIndex >= tagUseSkillAttack.HurtList.Length)
                {
                    caster.battleField.battleEffectMgr.RemoveEffect(skillConfig.BulletEffectId, effectPlayer);
                }
@@ -415,7 +417,7 @@
                if (isFinish)
                    return;
                if (bulletIndex >= skillConfig.ActiveFrames.Length - 1 && bounceHitIndex >= hitList.Count)
                if (tempBulletIndex >= skillConfig.ActiveFrames.Length - 1 && bounceHitIndex >= hitList.Count)
                {
                    isFinish = true;
                }