From fa15d170f7c8c5bffae5b7856ee4d992922d13cb Mon Sep 17 00:00:00 2001 From: FlightControl_Master Date: Tue, 20 Mar 2018 11:49:26 +0100 Subject: [PATCH] - fixed error where the players collection was iterated from the DATABASE, but the wrong collection :-) - now the player database is correctly interpreted, and the unit is interpreted, not the player name :-) --- Moose Development/Moose/AI/AI_Balancer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moose Development/Moose/AI/AI_Balancer.lua b/Moose Development/Moose/AI/AI_Balancer.lua index cb784e571..4f11776fb 100644 --- a/Moose Development/Moose/AI/AI_Balancer.lua +++ b/Moose Development/Moose/AI/AI_Balancer.lua @@ -249,7 +249,7 @@ function AI_BALANCER:onenterMonitoring( SetGroup ) self:T2( RangeZone ) - _DATABASE:ForEachPlayer( + _DATABASE:ForEachPlayerUnit( --- @param Wrapper.Unit#UNIT RangeTestUnit function( RangeTestUnit, RangeZone, AIGroup, PlayerInRange ) self:T2( { PlayerInRange, RangeTestUnit.UnitName, RangeZone.ZoneName } )