fixes for bugs found by bishop

This commit is contained in:
2024-12-11 19:46:48 +01:00
parent a8c8c03994
commit 5f40cb2d25
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -303,6 +303,8 @@ do
local function CheckAndTriggerSpawnAsync(unit, time)
local function isPlayer(unit)
if unit == nil then return false, "unit is nil" end
if unit.getGroup == nil then return false, 'no get group function in unit object, most likely static' end
if unit:isExist() ~= true then return false, "unit does not exist" end
local group = unit:getGroup()
if group ~= nil then