Merge pull request #1953 from ttrebuchon/tt/fix-opsgroup-getlifepoints-typo

Set life0 based on itself, rather than off of life
This commit is contained in:
Frank
2023-06-11 00:52:13 +02:00
committed by GitHub

View File

@@ -980,7 +980,7 @@ function OPSGROUP:GetLifePoints(Element)
for _,element in pairs(self.elements) do for _,element in pairs(self.elements) do
local l,l0=self:GetLifePoints(element) local l,l0=self:GetLifePoints(element)
life=life+l life=life+l
life0=life+l0 life0=life0+l0
end end
end end