Quantcast

don't change in vehicles

Darthpred [08-01-16 - 06:44]
don't change in vehicles
Filename
ElvUI_SLE/modules/equipmanager.lua
diff --git a/ElvUI_SLE/modules/equipmanager.lua b/ElvUI_SLE/modules/equipmanager.lua
index 5dc3d73..4318f54 100644
--- a/ElvUI_SLE/modules/equipmanager.lua
+++ b/ElvUI_SLE/modules/equipmanager.lua
@@ -90,7 +90,7 @@ local function Equip(event)
 	local spec, equipSet = EM:GetData()
 	if spec ~= nil then --In case you don't have spec
 		local isWrong, trueSet = EM:WrongSet(equipSet, SpecTable[spec], inCombat)
-		if isWrong then
+		if isWrong and not T.UnitInVehicle("player") then
 			T.UseEquipmentSet(trueSet)
 		end
 	end