Wrath error fixes

This commit is contained in:
Tercio Jose
2022-11-27 18:35:35 -03:00
parent ebe8c496d1
commit eb60b77c32
6 changed files with 22 additions and 10 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
local dversion = 397
local dversion = 398
local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary(major, minor)
+1 -1
View File
@@ -300,7 +300,7 @@ detailsFramework:Mixin(ImageMetaFunctions, detailsFramework.ScriptHookMixin)
if (texture) then
if (type(texture) == "table") then
if (texture.gradient) then
if (detailsFramework.IsDragonflight()) then
if (detailsFramework.IsDragonflight() or ImageObject.image.SetGradient) then
ImageObject.image:SetColorTexture(1, 1, 1, 1)
local fromColor = detailsFramework:FormatColor("tablemembers", texture.fromColor)
local toColor = detailsFramework:FormatColor("tablemembers", texture.toColor)
+10 -2
View File
@@ -453,7 +453,11 @@ local getSpellListAsHashTableFromSpellBook = function()
spellId = C_SpellBook.GetOverrideSpell(spellId)
local spellName = GetSpellInfo(spellId)
local bIsPassive = IsPassiveSpell(spellId, "player")
if (spellName and not bIsPassive) then
if LIB_OPEN_RAID_MULTI_OVERRIDE_SPELLS[spellId] then
for _, overrideSpellId in pairs(LIB_OPEN_RAID_MULTI_OVERRIDE_SPELLS[spellId]) do
completeListOfSpells[overrideSpellId] = true
end
elseif (spellName and not bIsPassive) then
completeListOfSpells[spellId] = true
end
end
@@ -473,7 +477,11 @@ local getSpellListAsHashTableFromSpellBook = function()
spellId = C_SpellBook.GetOverrideSpell(spellId)
local spellName = GetSpellInfo(spellId)
local bIsPassive = IsPassiveSpell(spellId, "player")
if (spellName and not bIsPassive) then
if LIB_OPEN_RAID_MULTI_OVERRIDE_SPELLS[spellId] then
for _, overrideSpellId in pairs(LIB_OPEN_RAID_MULTI_OVERRIDE_SPELLS[spellId]) do
completeListOfSpells[overrideSpellId] = true
end
elseif (spellName and not bIsPassive) then
completeListOfSpells[spellId] = true
end
end
@@ -803,6 +803,11 @@ do
--187827 vengeance need to test these spellIds
--191427 havoc
}
LIB_OPEN_RAID_MULTI_OVERRIDE_SPELLS = {
[106898] = {106898,77764,77761},
[77764] = {106898,77764,77761},
[77761] = {106898,77764,77761},
}
LIB_OPEN_RAID_SPECID_TO_CLASSID = {
[577] = 12,
+2 -2
View File
@@ -6,8 +6,8 @@
local addonName, Details222 = ...
local version, build, date, tocversion = GetBuildInfo()
_detalhes.build_counter = 10300
_detalhes.alpha_build_counter = 10300 --if this is higher than the regular counter, use it instead
_detalhes.build_counter = 10301
_detalhes.alpha_build_counter = 10301 --if this is higher than the regular counter, use it instead
_detalhes.dont_open_news = true
_detalhes.game_version = version
_detalhes.userversion = version .. " " .. _detalhes.build_counter
+3 -4
View File
@@ -5332,13 +5332,12 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
end
--tag item level of all players
local openRaidLib = LibStub:GetLibrary("LibOpenRaid-1.0")
local allUnitsInfo = openRaidLib.GetAllUnitsInfo()
local allPlayersGear = openRaidLib.GetAllUnitsGear()
local openRaidLib = LibStub:GetLibrary("LibOpenRaid-1.0", true)
local allPlayersGear = openRaidLib and openRaidLib.GetAllUnitsGear()
local status = xpcall(function()
for actorIndex, actorObject in Details:GetCurrentCombat():GetContainer(DETAILS_ATTRIBUTE_DAMAGE):ListActors() do
local gearInfo = allPlayersGear[actorObject:Name()]
local gearInfo = allPlayersGear and allPlayersGear[actorObject:Name()]
if (gearInfo) then
actorObject.ilvl = gearInfo.ilevel
end