Working Copy #9

Merged
conco merged 43 commits from english into master 2021-11-07 20:14:37 +00:00
Showing only changes of commit 7d73ac19f5 - Show all commits

View File

@@ -161,23 +161,18 @@ function THTD_GetCombo(tower)
for k,v in pairs(value) do for k,v in pairs(value) do
if THTD_IsTowerInList(tower:GetOwner(),v) == true then if THTD_IsTowerInList(tower:GetOwner(),v) == true then
print(v)
count = count + 1 count = count + 1
end end
if tower:GetUnitName() == v then if tower:GetUnitName() == v then
print(v)
isInCombo = true isInCombo = true
end end
end end
print("Count " .. count)
print("#value " .. #value)
if count == #value and isInCombo == true then if count == #value and isInCombo == true then
comboTable[index] = value comboTable[index] = value
end end
end end
if comboTable ~= nil then if comboTable ~= nil then
print(comboTable)
return comboTable return comboTable
end end
return nil return nil