This commit is contained in:
Applevangelist 2025-05-12 08:30:35 +02:00
parent e9d812f315
commit c1855cefd3

View File

@ -7214,13 +7214,17 @@ end
-- right subtype? -- right subtype?
if Event == subtype and not task:IsDone() then if Event == subtype and not task:IsDone() then
local targetzone = task.Target:GetObject() -- Core.Zone#ZONE should be a zone in this case .... local targetzone = task.Target:GetObject() -- Core.Zone#ZONE should be a zone in this case ....
--self:T2({Name=Groupname,Property=task:GetProperty("ExtractName")}) self:T2({Name=Groupname,Property=task:GetProperty("ExtractName")})
local okaygroup = string.find(Groupname,task:GetProperty("ExtractName"),1,true) if task:GetProperty("ExtractName") then
if targetzone and targetzone.ClassName and string.match(targetzone.ClassName,"ZONE") and okaygroup then local okaygroup = string.find(Groupname,task:GetProperty("ExtractName"),1,true)
if task.Clients:HasUniqueID(playername) then if targetzone and targetzone.ClassName and string.match(targetzone.ClassName,"ZONE") and okaygroup then
-- success if task.Clients:HasUniqueID(playername) then
task:__Success(-1) -- success
task:__Success(-1)
end
end end
else
self:T({Text="'ExtractName' Property not set",Name=Groupname,Property=task.Type})
end end
end end
end end