diff KBF.lua @ 73:dbf17a303006

Make sure it only happens for 'real' vehicles, with a UI bar
author Chris Mellon <arkanes@gmail.com>
date Sat, 30 Jun 2012 18:49:36 -0500
parents b467bba0224d
children 2acabfca1305
line wrap: on
line diff
--- a/KBF.lua	Sat Jun 30 18:33:44 2012 -0500
+++ b/KBF.lua	Sat Jun 30 18:49:36 2012 -0500
@@ -495,7 +495,7 @@
     vehicleSwapper:SetFrameRef("secureHeader", secureHeader)
     vehicleSwapper:SetAttribute("_onstate-unitexists", [[
         local frame = self:GetFrameRef("secureHeader")
-        if newstate then
+        if newstate and UnitHasVehicleUI("player") then
             frame:SetAttribute("unit", "vehicle")
         else
             frame:SetAttribute("unit", "player")