From 4c08002d3e7557fc5e4d5b1bab979825515f31e4 Mon Sep 17 00:00:00 2001 From: funkyfranky Date: Tue, 9 Apr 2019 14:56:20 +0200 Subject: [PATCH] AB 0998 --- Moose Development/Moose/Ops/Airboss.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Moose Development/Moose/Ops/Airboss.lua b/Moose Development/Moose/Ops/Airboss.lua index d49aff897..c54bc60cb 100644 --- a/Moose Development/Moose/Ops/Airboss.lua +++ b/Moose Development/Moose/Ops/Airboss.lua @@ -1667,7 +1667,7 @@ AIRBOSS.MenuF10Root=nil --- Airboss class version. -- @field #string version -AIRBOSS.version="0.9.9.7" +AIRBOSS.version="0.9.9.8" ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- TODO list @@ -8861,8 +8861,11 @@ function AIRBOSS:_Initial(playerData) -- Relative heading to carrier direction. local relheading=self:_GetRelativeHeading(playerData.unit, false) + -- Alitude of player in feet. + local altitude=UTILS.MetersToFeet(playerData.unit:GetAltitude()) + -- Check if player is in zone and flying roughly in the right direction. - if inzone and math.abs(relheading)<60 then + if inzone and math.abs(relheading)<60 and altitude<=1300 then -- Send message for normal and easy difficulty. if playerData.showhints then