mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
xxx
This commit is contained in:
@@ -445,7 +445,11 @@ function UNIT:IsPlayer()
|
|||||||
if not group then return false end
|
if not group then return false end
|
||||||
|
|
||||||
-- Units of template group.
|
-- Units of template group.
|
||||||
local units=group:GetTemplate().units
|
local template = group:GetTemplate()
|
||||||
|
|
||||||
|
if (template == nil) or (template.units == nil ) then return false end
|
||||||
|
|
||||||
|
local units=template.units
|
||||||
|
|
||||||
-- Get numbers.
|
-- Get numbers.
|
||||||
for _,unit in pairs(units) do
|
for _,unit in pairs(units) do
|
||||||
|
|||||||
Reference in New Issue
Block a user