mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
SET_GROUP:CountUnitInZone()
This commit is contained in:
parent
d0e138b4c7
commit
de3f8f529f
@ -1156,9 +1156,7 @@ function SET_GROUP:CountUnitInZone(Zone)
|
||||
local Count = 0
|
||||
local Set = self:GetSet()
|
||||
for GroupID, GroupData in pairs(Set) do -- For each GROUP in SET_GROUP
|
||||
if GroupData:IsCompletelyInZone(Zone) then
|
||||
Count = Count + 1
|
||||
end
|
||||
Count = Count + GroupData:CountInZone(Zone)
|
||||
end
|
||||
return Count
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user