Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Applevangelist committed Aug 10, 2024
2 parents c307de6 + 90d2007 commit e768ec3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Moose Development/Moose/Core/Set.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4460,6 +4460,23 @@ do -- SET_CLIENT
return self
end

--- Builds a set of units which exist and are alive.
-- @param #SET_CLIENT self
-- @return #SET_CLIENT self
function SET_CLIENT:FilterAlive()
self:FilterFunction(
function(unit)
if unit and unit:IsExist() and unit:IsAlive() then
return true
else
return false
end
end
)
return self
end


--- Builds a set of clients in zones.
-- @param #SET_CLIENT self
-- @param #table Zones Table of Core.Zone#ZONE Zone objects, or a Core.Set#SET_ZONE
Expand Down

0 comments on commit e768ec3

Please sign in to comment.