Quantcast WoWInterface - View Single Post - Power Auras Classic 5.0
View Single Post
10-06-12, 08:45 PM   #435
A Cobalt Mageweaver
Join Date: Nov 2006
Posts: 230
Detecting unit in a vehicle. Some mods do this wrong. The point of this option is that if you're controlling a vehicle then you don't have control of your normal character abilities, which means you want to hide certain auras that work off your abilities.

So in playerstate.lua line 88:
local UnitInVehicle = UnitInVehicle;

I changed this to
local UnitInVehicle = UnitHasVehicleUI;

The problem with UnitInVehicle is in some boss fights, my stuff disappears when I don't have a vehicle UI.
Like for example the gate of the setting sun when you do raigonn and do weak spot. You're in a vehicle but don't have vehicle UI. So UnitInVehicle returns true and your stuff disappears when you don't want it.

Last edited by galvin : 10-06-12 at 08:48 PM.