Merge pull request #2303 from leka1986/master

Fix Line 77390: attempt to index local 'zonecoord' (a nil value)
This commit is contained in:
Thomas 2025-05-12 07:00:19 +02:00 committed by GitHub
commit 5b8b8a5566
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5981,6 +5981,7 @@ function CTLD:SmokeZoneNearBy(Unit, Flare)
end
end
local zonecoord = zone:GetCoordinate()
if zonecoord then
local active = CZone.active
local color = CZone.color
local distance = self:_GetDistance(zonecoord,unitcoord)
@ -5997,6 +5998,7 @@ function CTLD:SmokeZoneNearBy(Unit, Flare)
self:_SendMessage(string.format("Roger, %s zone %s!",txt, zonename), 10, false, Group)
smoked = true
end
end
end
end
if not smoked then