Range fix issue #1753 (#1767)

Issue #1753 - when using `AddBombingTargets` the randommove flag was not passed to `AddBombingTargetUnit` for a group object
This commit is contained in:
Applevangelist 2022-08-25 16:00:47 +02:00 committed by GitHub
parent aaf77815ca
commit 5277cca4e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1388,7 +1388,7 @@ function RANGE:AddBombingTargets( targetnames, goodhitrange, randommove )
elseif _isstatic == false then
local _unit = UNIT:FindByName( name )
self:T2( self.id .. string.format( "Adding unit bombing target %s with hit range %d.", name, goodhitrange, randommove ) )
self:AddBombingTargetUnit( _unit, goodhitrange )
self:AddBombingTargetUnit( _unit, goodhitrange, randommove )
else
self:E( self.id .. string.format( "ERROR! Could not find bombing target %s.", name ) )
end