更新
This commit is contained in:
parent
a01f2ebcad
commit
40e1eb3462
@ -53,7 +53,8 @@ function DamageProxy:TakeDamage(Caster: TypeList.Character, Victim: TypeList.Cha
|
|||||||
local DamageTag = DamageInfo.DamageTag
|
local DamageTag = DamageInfo.DamageTag
|
||||||
|
|
||||||
-- 伤害计算
|
-- 伤害计算
|
||||||
|
local VictimHealth = Victim:GetAttribute("health")
|
||||||
|
Victim:ChangeAttribute("health", math.max(0, VictimHealth - Damage))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user