Merge pull request #713 from Flamanis/More-cata-Fixes

Cata fixes.
This commit is contained in:
Tercio Jose
2024-04-20 12:28:43 -03:00
committed by GitHub
6 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -460,7 +460,7 @@ detailsFramework.TextEntryCounter = detailsFramework.TextEntryCounter or 1
end end
self:SetJustifyH("left") self:SetJustifyH("left")
self:SetJustifyV("center") self:SetJustifyV("middle")
self:SetTextInsets(18, 14, 0, 0) self:SetTextInsets(18, 14, 0, 0)
local magnifyingGlassTexture = self:CreateTexture(nil, "OVERLAY") local magnifyingGlassTexture = self:CreateTexture(nil, "OVERLAY")
@@ -608,6 +608,9 @@ elseif (GetBuildInfo():match ("%d") == "2") then
elseif (GetBuildInfo():match ("%d") == "3") then elseif (GetBuildInfo():match ("%d") == "3") then
LIB_OPEN_RAID_SPELL_CUSTOM_NAMES = {} LIB_OPEN_RAID_SPELL_CUSTOM_NAMES = {}
elseif (GetBuildInfo():match ("%d") == "4") then
LIB_OPEN_RAID_SPELL_CUSTOM_NAMES = {}
else else
LIB_OPEN_RAID_SPELL_CUSTOM_NAMES = { LIB_OPEN_RAID_SPELL_CUSTOM_NAMES = {
[44461] = {name = GetSpellInfo(44461) .. " (" .. L["STRING_EXPLOSION"] .. ")"}, --Living Bomb (explosion) [44461] = {name = GetSpellInfo(44461) .. " (" .. L["STRING_EXPLOSION"] .. ")"}, --Living Bomb (explosion)
+1 -1
View File
@@ -2364,7 +2364,7 @@
end end
function parser:heal_absorb(token, time, sourceSerial, sourceName, sourceFlags, targetSerial, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool, shieldOwnerSerial, shieldOwnerName, shieldOwnerFlags, shieldOwnerFlags2, shieldSpellId, shieldName, shieldType, amount) function parser:heal_absorb(token, time, sourceSerial, sourceName, sourceFlags, targetSerial, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool, shieldOwnerSerial, shieldOwnerName, shieldOwnerFlags, shieldOwnerFlags2, shieldSpellId, shieldName, shieldType, amount)
if (isWOTLK or isERA) then if (isCATA or isWOTLK or isERA) then
if (not amount) then if (not amount) then
--melee --melee
shieldOwnerSerial, shieldOwnerName, shieldOwnerFlags, shieldOwnerFlags2, shieldSpellId, shieldName, shieldType, amount = spellId, spellName, spellSchool, shieldOwnerSerial, shieldOwnerName, shieldOwnerFlags, shieldOwnerFlags2, shieldSpellId shieldOwnerSerial, shieldOwnerName, shieldOwnerFlags, shieldOwnerFlags2, shieldSpellId, shieldName, shieldType, amount = spellId, spellName, spellSchool, shieldOwnerSerial, shieldOwnerName, shieldOwnerFlags, shieldOwnerFlags2, shieldSpellId
+1
View File
@@ -158,6 +158,7 @@ function Details222.EJCache.CreateEncounterJournalDump()
--use current tier for dungeons, as the current tier shows the dungeons used for the current season of Mythic+ --use current tier for dungeons, as the current tier shows the dungeons used for the current season of Mythic+
local startIndex, endIndex local startIndex, endIndex
if (bIsRaid) then if (bIsRaid) then
if currentTierId == 1 then break end --Cata has only one tier. Looking up tier 0 errors. ~CATA
EJ_SelectTier(currentTierId - 1) --print("tier selected:", currentTierId - 1, "raids") --debug EJ_SelectTier(currentTierId - 1) --print("tier selected:", currentTierId - 1, "raids") --debug
startIndex = raidTierStartIndex startIndex = raidTierStartIndex
endIndex = 20 endIndex = 20
+1
View File
@@ -7,6 +7,7 @@ local tinsert = tinsert
local addonName, Details222 = ... local addonName, Details222 = ...
function Details.InstallRaidInfo() function Details.InstallRaidInfo()
if not DetailsFramework.IsDragonflightWow() then return end --In Cata, EJ_SelectInstance will fail due to instance not existing. This file only contains dragonflight raids anyways. Best keep it on DF only.
do do
local INSTANCE_EJID = 1200 local INSTANCE_EJID = 1200
local INSTANCE_MAPID = 2522 local INSTANCE_MAPID = 2522
@@ -1,6 +1,6 @@
--do not load if this is a classic version of the game --do not load if this is a classic version of the game
if (DetailsFramework.IsTBCWow() or DetailsFramework.IsWotLKWow() or DetailsFramework.IsClassicWow()) then if (DetailsFramework.IsTBCWow() or DetailsFramework.IsWotLKWow() or DetailsFramework.IsClassicWow() or DetailsFramework.IsCataWow()) then
return return
end end