From 2d3a60767d0cd69c8dec97e39937bcd0c667be1c Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期三, 12 十一月 2025 18:54:57 +0800
Subject: [PATCH] 125 战斗 血条&护盾1护盾2表现

---
 Main/System/Battle/BattleUtility.cs |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/Main/System/Battle/BattleUtility.cs b/Main/System/Battle/BattleUtility.cs
index 6b8e4e6..091b9fe 100644
--- a/Main/System/Battle/BattleUtility.cs
+++ b/Main/System/Battle/BattleUtility.cs
@@ -296,6 +296,16 @@
         }
         return config.nums[_num - 48];
     }
+
+    public static bool IsHealing(HB427_tagSCUseSkill.tagSCUseSkillHurt hurt)
+    {
+        return ((hurt.AttackTypes & (int)ServerDamageType.Recovery) != 0 || 
+                          (hurt.AttackTypes & (int)ServerDamageType.DamageReverse) != 0) &&
+                         (hurt.AttackTypes & (int)ServerDamageType.Damage) == 0 &&
+                         (hurt.AttackTypes & (int)ServerDamageType.Realdamage) == 0 &&
+                         (hurt.AttackTypes & (int)ServerDamageType.SuckHpReverse) == 0 &&
+                         (hurt.AttackTypes & (int)ServerDamageType.SelfHarm) == 0;
+    }
     
     /// <summary>
     /// 灏嗘暣涓妧鑳界殑鎬讳激瀹虫寜鍛戒腑娆℃暟鍜屽垎娈甸厤缃垎閰�

--
Gitblit v1.8.0