From ff0163176f59bdd935543b23fabd2ea777603f4a Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期二, 16 十二月 2025 11:19:26 +0800
Subject: [PATCH] 125 战斗 修复血量溢出时有护盾的问题
---
Main/System/Battle/BattleUtility.cs | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Main/System/Battle/BattleUtility.cs b/Main/System/Battle/BattleUtility.cs
index 2b0d59d..97a7046 100644
--- a/Main/System/Battle/BattleUtility.cs
+++ b/Main/System/Battle/BattleUtility.cs
@@ -399,11 +399,13 @@
if (hurter.fromShieldValue >= currentHitDamage)
{
hurter.toHp = hurter.fromHp;
+ target.teamHero.curHp = hurter.toHp; // 淇濇寔涓�鑷存��
}
else
{
long remainingDamage = currentHitDamage - hurter.fromShieldValue;
hurter.toHp = Math.Max(0, hurter.fromHp - remainingDamage);
+ target.teamHero.curHp = hurter.toHp; // 淇濇寔涓�鑷存��
}
}
}
@@ -472,7 +474,8 @@
caster.toHp = casterToHp;
caster.toShieldValue = casterToShield;
-
+ skillBase.caster.teamHero.curHp = caster.toHp; // 淇濇寔涓�鑷存��
+
return caster;
}
--
Gitblit v1.8.0