Fix ZoneCaptureCoalition on player ejects / gets killed in zone

ZoneCaptureCoalition.lua:879 calls GetScannedSetUnit and will stop the scheduler if the error message for STATICs is raised. We already have a check if it is present so we can add this explicitly here.
This commit is contained in:
Alex
2024-07-21 00:11:23 +02:00
committed by GitHub
parent d07107d937
commit 041cd238df

View File

@@ -1203,7 +1203,7 @@ function ZONE_RADIUS:GetScannedSetUnit()
if FoundUnit then
SetUnit:AddUnit( FoundUnit )
else
local FoundStatic = STATIC:FindByName( UnitObject:getName() )
local FoundStatic = STATIC:FindByName( UnitObject:getName(), false )
if FoundStatic then
SetUnit:AddUnit( FoundStatic )
end