diff --git a/src/ServerStorage/Proxy/DamageProxy.luau b/src/ServerStorage/Proxy/DamageProxy.luau index 4d91da4..d3a1ece 100644 --- a/src/ServerStorage/Proxy/DamageProxy.luau +++ b/src/ServerStorage/Proxy/DamageProxy.luau @@ -53,7 +53,8 @@ function DamageProxy:TakeDamage(Caster: TypeList.Character, Victim: TypeList.Cha local DamageTag = DamageInfo.DamageTag -- 伤害计算 - + local VictimHealth = Victim:GetAttribute("health") + Victim:ChangeAttribute("health", math.max(0, VictimHealth - Damage)) end end