mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
OPS
- Added rearming zones - Improved rearming
This commit is contained in:
@@ -3148,13 +3148,13 @@ function FLIGHTGROUP:FindNearestTanker(Radius)
|
||||
|
||||
local istanker, refuelsystem=unit:IsTanker()
|
||||
|
||||
if istanker and self.refueltype==refuelsystem then
|
||||
if istanker and self.refueltype==refuelsystem and unit:GetCoalition()==self:GetCoalition() then
|
||||
|
||||
-- Distance.
|
||||
local d=unit:GetCoordinate():Get2DDistance(coord)
|
||||
|
||||
if d<dmin then
|
||||
d=dmin
|
||||
dmin=d
|
||||
tanker=unit
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user