Merge branch 'FF/Ops' into FF/OpsDev

This commit is contained in:
Frank 2023-02-12 13:53:47 +01:00
commit ac1b458eb4

View File

@ -3379,14 +3379,15 @@ function RANGE:_GetBombTargetCoordinate( target )
if target.type == RANGE.TargetType.UNIT then
if not target.move then
-- Target should not move.
coord = target.coordinate
else
-- Moving target. Check if alive and get current position
-- Check if alive
if target.target and target.target:IsAlive() then
-- Get current position.
coord = target.target:GetCoordinate()
end
-- Save as last known position in case target dies.
target.coordinate=coord
else
-- Use stored position.
coord = target.coordinate
end
elseif target.type == RANGE.TargetType.STATIC then