Update CTLD.lua

This commit is contained in:
Thomas 2025-01-27 18:45:39 +01:00 committed by GitHub
parent bfb60b318e
commit 6af836c118
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5657,7 +5657,7 @@ end
self.CargoCounter = self.CargoCounter + 1
cargo.ID = self.CargoCounter
cargo.Stock = 1
table.insert(self.Cargo_Crates,cargo)
table.insert(self.Cargo_Troops,cargo)
end
if match and CargoObject then
@ -6050,7 +6050,9 @@ end
-- right subtype?
if Event == subtype and not task:IsDone() then
local targetzone = task.Target:GetObject() -- Core.Zone#ZONE should be a zone in this case ....
if targetzone and targetzone.ClassName and string.match(targetzone.ClassName,"ZONE") and targetzone:GetProperty("Extractname") == Groupname then
--self:T2({Name=Groupname,Property=task:GetProperty("ExtractName")})
local okaygroup = string.find(Groupname,task:GetProperty("ExtractName"),1,true)
if targetzone and targetzone.ClassName and string.match(targetzone.ClassName,"ZONE") and okaygroup then
if task.Clients:HasUniqueID(playername) then
-- success
task:__Success(-1)