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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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