From 6a4a7304eac4b599d9d41eb18dfa12abfbb16c40 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 26 十二月 2025 15:56:21 +0800
Subject: [PATCH] 125 战斗 修复了重复多次计算吸血的问题

---
 Main/System/Battle/Skill/RebornSkill.cs |   16 ++++------------
 1 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/Main/System/Battle/Skill/RebornSkill.cs b/Main/System/Battle/Skill/RebornSkill.cs
index 591c964..0d2b5ff 100644
--- a/Main/System/Battle/Skill/RebornSkill.cs
+++ b/Main/System/Battle/Skill/RebornSkill.cs
@@ -26,6 +26,8 @@
 			}
 		}
 
+		bool vValue = true;
+
         // 澶勭悊涓荤洰鏍囧垪琛�
         foreach (var hurt in hitList)
         { 
@@ -35,20 +37,10 @@
                 Debug.LogError("鐩爣涓虹┖ target == null ObjId : " + hurt.ObjID);
                 continue;
             }
-            OnHitEachTarget(_hitIndex, target, hurt);
+            OnHitEachTarget(_hitIndex, target, hurt, vValue);
+			vValue = false;
         }
 	}
-
-	protected override void OnHitEachTarget(int _hitIndex, BattleObject target, HB427_tagSCUseSkill.tagSCUseSkillHurt hurt)
-    {
-        BattleHurtParam hurtParam = BattleUtility.CalcBattleHurtParam(this, _hitIndex, target, hurt, null, null);
-
-        // 鍏堣皟鐢ㄧ洰鏍囧彈浼�
-        target.Hurt(hurtParam);
-        
-        // 鍐嶈皟鐢ㄦ柦娉曡�呭惛琛�/鍙嶄激
-        caster.OnHurtTarget(hurtParam);
-    }
 
     public override void Cast()
     {

--
Gitblit v1.8.0