Merge pull request #2297 from FlightControl-Master/Applevangelist-patch-1

Update CTLD.lua
This commit is contained in:
Thomas 2025-04-28 09:20:58 +02:00 committed by GitHub
commit 069c0aa03f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5662,6 +5662,7 @@ function CTLD:IsUnitInZone(Unit,Zonetype)
if Zonetype == CTLD.CargoZoneType.SHIP then
self:T("Checking Type Ship: "..zonename)
local ZoneUNIT = UNIT:FindByName(zonename)
if not ZoneUNIT then return false end
zonecoord = ZoneUNIT:GetCoordinate()
zoneradius = czone.shiplength
zonewidth = czone.shipwidth