reduce use of Map.Topleft and Map.Bottomright as requested in #8549
This commit is contained in:
@@ -270,10 +270,8 @@ IdleHunt = function(unit)
|
||||
end
|
||||
|
||||
CheckForSams = function(player)
|
||||
local baseBuildings = Map.ActorsInBox(Map.TopLeft, Map.BottomRight, function(actor)
|
||||
return actor.Owner == Nod and actor.Type == 'sam' end)
|
||||
|
||||
return #baseBuildings >= 3
|
||||
local sams = Nod.GetActorsByType("sam")
|
||||
return #sams >= 3
|
||||
end
|
||||
|
||||
checkProduction = function(player)
|
||||
|
||||
Reference in New Issue
Block a user