TARGET - declare Scenery target dead if <= 25% of life0

This commit is contained in:
Applevangelist 2024-01-21 16:46:24 +01:00
parent e50d54f6bc
commit f2fc321ded
2 changed files with 2 additions and 2 deletions

View File

@ -1107,7 +1107,7 @@ function TARGET:GetTargetLife(Target)
elseif Target.Type==TARGET.ObjectType.SCENERY then
if Target.Object and Target.Object:IsAlive() then
if Target.Object and Target.Object:IsAlive(25) then
local life = Target.Object:GetLife()
return life
else