Fix the harvest protection logic

This commit is contained in:
abcdefg30
2017-06-27 17:57:29 +02:00
committed by reaperrr
parent e07779942e
commit 6907929cb4
20 changed files with 44 additions and 31 deletions

View File

@@ -90,11 +90,11 @@ Tick = function()
player.MarkCompletedObjective(KillHarkonnen)
end
if DateTime.GameTime % DateTime.Seconds(30) and HarvesterKilled[harkonnen] then
if DateTime.GameTime % DateTime.Seconds(30) and LastHarvesterEaten[harkonnen] then
local units = harkonnen.GetActorsByType("harvester")
if #units > 0 then
HarvesterKilled[harkonnen] = false
LastHarvesterEaten[harkonnen] = false
ProtectHarvester(units[1], harkonnen, AttackGroupSize[Difficulty])
end
end