updated script according to the current function signature

This commit is contained in:
devZoGok
2025-06-24 18:36:25 +03:00
parent 09fb45fdc4
commit 3862baa5f6
+2 -2
View File
@@ -105,7 +105,7 @@ end
-- TODO optimize deposit position check
function Player:buildExtractor(arguments)
deposits = {}
players = Game.getSingleton():getPlayers()
players = Game.getSingleton():getPlayers(true)
for i = 1, #players do
deps = players[i]:getResourceDeposits()
@@ -229,7 +229,7 @@ function Player:clearNearEnemies(arguments)
self:selectUnits(taskForce.units)
targetUnits = {}
players = Game.getSingleton():getPlayers()
players = Game.getSingleton():getPlayers(false)
for i = 1, #players do
if players[i] == self or players[i]:getTeam() == self:getTeam() then goto continue end