changeset 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 d429fc0a5a97
children ab3b89b7de4f
files KBF.lua README
diffstat 2 files changed, 2 insertions(+), 7 deletions(-) [+]
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")
--- a/README	Sat Jun 30 18:33:44 2012 -0500
+++ b/README	Sat Jun 30 18:49:36 2012 -0500
@@ -6,17 +6,12 @@
 	Use /kbf to toggle the positioning anchor
 	Left click on a buff to remove it.
 	Weapon enchant support.
-	Vehicle swap support (Out of combat only)
+	Vehicle swap support (Now in combat as well!)
 	Fancy weapon enchant tooltips - for supported weapon enchants (please open a ticket if your favorites are missing),
 	you get a tooltip showing the weapon name and the enchant info, rather than the default weapon tooltip.
 	
 	
 Issues/flaws:
-	Vehicle support: KBF will swap to show the buffs of your vehicle, rather than your own buffs if:
-		a) You are in a "real" vehicle, with its own action bar
-		b) You are out of combat when you enter (or leave, for switching back) the vehicle.
-		
-		Condition (b) is a consequence of the blizzard secure aura system not supporting vehicles.
 	Weapon enchants:
 		Weapon enchants will always be shown at the top of the buff list.
 		The enchant on your thrown weapon will be shown, but will be inoperable.