This commit is contained in:
Ggafrik 2025-07-05 00:23:47 +08:00
parent a01f2ebcad
commit 40e1eb3462

View File

@ -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