From 5277cca4e1455db98114ff569a9467d57eaa9400 Mon Sep 17 00:00:00 2001 From: Applevangelist <72444570+Applevangelist@users.noreply.github.com> Date: Thu, 25 Aug 2022 16:00:47 +0200 Subject: [PATCH] Range fix issue #1753 (#1767) Issue #1753 - when using `AddBombingTargets` the randommove flag was not passed to `AddBombingTargetUnit` for a group object --- Moose Development/Moose/Functional/Range.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moose Development/Moose/Functional/Range.lua b/Moose Development/Moose/Functional/Range.lua index 1999747a2..948b23cc4 100644 --- a/Moose Development/Moose/Functional/Range.lua +++ b/Moose Development/Moose/Functional/Range.lua @@ -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