mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-19 13:46:08 +00:00
Issue #1753 - when using `AddBombingTargets` the randommove flag was not passed to `AddBombingTargetUnit` for a group object
This commit is contained in:
@@ -1388,7 +1388,7 @@ function RANGE:AddBombingTargets( targetnames, goodhitrange, randommove )
|
|||||||
elseif _isstatic == false then
|
elseif _isstatic == false then
|
||||||
local _unit = UNIT:FindByName( name )
|
local _unit = UNIT:FindByName( name )
|
||||||
self:T2( self.id .. string.format( "Adding unit bombing target %s with hit range %d.", name, goodhitrange, randommove ) )
|
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
|
else
|
||||||
self:E( self.id .. string.format( "ERROR! Could not find bombing target %s.", name ) )
|
self:E( self.id .. string.format( "ERROR! Could not find bombing target %s.", name ) )
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user