Skip to content

Commit

Permalink
moved chicken globallos trigger to 15th GameFrame instead of init
Browse files Browse the repository at this point in the history
  • Loading branch information
Damgam committed Jul 8, 2018
1 parent 17e70b9 commit 4fabaf5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions LuaRules/Gadgets/chicken_spawner_defense.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ end

if chickensEnabled == true then
Spring.Echo("[ChickenDefense: Chicken Defense Spawner] Activated!")
if chickenGlobalLOS == "enabled" then
local allyteams = Spring.GetAllyTeamList()
for i =1, #allyteams do
Spring.SetGlobalLos(i, true)
end
end
else
Spring.Echo("[ChickenDefense: Chicken Defense Spawner] Deactivated!")
return false
Expand Down Expand Up @@ -1299,6 +1293,12 @@ function gadget:GameFrame(n)

if n == 15 then
DisableComputerUnits()
if chickenGlobalLOS == "enabled" then
local allyteams = Spring.GetAllyTeamList()
for i =1, #allyteams do
Spring.SetGlobalLos(i, true)
end
end
end

if ((n % 90) == 0) then
Expand Down

0 comments on commit 4fabaf5

Please sign in to comment.