mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Fixed but with distance when player was nearby.
Detection used PlayerUnitName, instead of Distance. Added new FriendliesDistance field. This is a better solution.
This commit is contained in:
@@ -794,7 +794,7 @@ do -- AI_A2A_DISPATCHER
|
||||
-- @return #number, Core.CommandCenter#REPORT
|
||||
function AI_A2A_DISPATCHER:GetAIFriendliesNearBy( DetectedItem )
|
||||
|
||||
local FriendliesNearBy = self.Detection:GetFriendliesNearBy( DetectedItem )
|
||||
local FriendliesNearBy = self.Detection:GetFriendliesDistance( DetectedItem )
|
||||
|
||||
return FriendliesNearBy
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user