Update Range.lua

Allow zone to be a string in RANGE:SetRangeZone
This commit is contained in:
Frank 2024-07-06 21:48:07 +02:00
parent f9031dba42
commit 13b272b6e5

View File

@ -1078,6 +1078,9 @@ end
-- @param Core.Zone#ZONE zone MOOSE zone defining the range perimeters.
-- @return #RANGE self
function RANGE:SetRangeZone( zone )
if zone and type(zone)=="string" then
zone=ZONE:FindByName(zone)
end
self.rangezone = zone
return self
end