This commit is contained in:
Applevangelist 2024-06-22 11:54:35 +02:00
parent ef7d354109
commit b701fa61fa

View File

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