Fix IsXWoW

This commit is contained in:
andrew6180
2024-06-10 11:38:50 -07:00
parent b4fb6ed2ae
commit 5990323b98
3 changed files with 3 additions and 7 deletions
+1 -1
View File
@@ -2207,7 +2207,7 @@ end
--todo: see what 'UnitTargetsVehicleInRaidUI' is, there's a call for this in the CompactUnitFrame.lua but zero documentation
CheckVehiclePossession = function(self)
--this unit is possessing a vehicle?
local unitPossessVehicle = (IS_WOW_PROJECT_MAINLINE) and UnitHasVehicleUI(self.unit) or false
local unitPossessVehicle = UnitHasVehicleUI(self.unit) or false
if (unitPossessVehicle) then
if (not self.unitInVehicle) then
if (UnitIsUnit("player", self.unit)) then
@@ -1,9 +1,5 @@
--do not load if this is a classic version of the game
if (DetailsFramework.IsTBCWow() or DetailsFramework.IsWotLKWow() or DetailsFramework.IsClassicWow() or DetailsFramework.IsCataWow()) then
return
end
local Details = _G.Details
local GetSpellInfo = Details.GetSpellInfo
local UnitAura = UnitAura
@@ -409,8 +409,8 @@ local function CreatePluginFrames (data)
}
local healthBarSettingsOverride = {
ShowHealingPrediction = not DetailsFramework.IsTBCWow(),
ShowShields = not DetailsFramework.IsTBCWow(),
ShowHealingPrediction = false,
ShowShields = true,
}
local castBarSettingsOverride = {