mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
xxx
This commit is contained in:
parent
ef7d354109
commit
b701fa61fa
@ -445,7 +445,11 @@ function UNIT:IsPlayer()
|
||||
if not group then return false end
|
||||
|
||||
-- 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.
|
||||
for _,unit in pairs(units) do
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user