SET_GROUP:CountUnitInZone()

This commit is contained in:
Grey-Echo 2017-04-22 14:38:00 +02:00
parent d0e138b4c7
commit de3f8f529f

View File

@ -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