Skip to content

Commit 4fbfed5

Browse files
committed
Update Libs, fixes #141
1 parent e2c2e59 commit 4fbfed5

File tree

5 files changed

+25
-42
lines changed

5 files changed

+25
-42
lines changed

Globals.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ local L = LibStub("AceLocale-3.0"):GetLocale("EnhancedRaidFrames")
1515
-- Set Classic and Classic_Era flags
1616
if WOW_PROJECT_ID == WOW_PROJECT_CLASSIC then
1717
EnhancedRaidFrames.isWoWClassicEra = true
18-
elseif WOW_PROJECT_ID == WOW_PROJECT_CATACLYSM_CLASSIC then
18+
elseif WOW_PROJECT_ID == WOW_PROJECT_MISTS_CLASSIC then
1919
EnhancedRaidFrames.isWoWClassic = true
2020
end
2121

Libs/LibDispel/LibDispel.lua

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ if not lib then return end
66

77
local Retail = WOW_PROJECT_ID == WOW_PROJECT_MAINLINE
88
local Classic = WOW_PROJECT_ID == WOW_PROJECT_CLASSIC
9-
local Cata = WOW_PROJECT_ID == WOW_PROJECT_CATACLYSM_CLASSIC
9+
local Mists = WOW_PROJECT_ID == WOW_PROJECT_MISTS_CLASSIC
1010

1111
local next = next
1212
local wipe = wipe
1313
local CopyTable = CopyTable
1414
local CreateFrame = CreateFrame
15-
local GetTalentInfo = GetTalentInfo
1615
local IsPlayerSpell = IsPlayerSpell
1716
local IsSpellKnownOrOverridesKnown = IsSpellKnownOrOverridesKnown
1817

@@ -1276,11 +1275,6 @@ do
12761275
end
12771276
end
12781277

1279-
local function CheckTalentClassic(tabIndex, talentIndex)
1280-
local _, _, _, _, rank = GetTalentInfo(tabIndex, talentIndex)
1281-
return (rank and rank > 0) or nil
1282-
end
1283-
12841278
local function UpdateDispels(_, event, arg1)
12851279
if event == 'CHARACTER_POINTS_CHANGED' and (not arg1 or arg1 > 0) then
12861280
return -- Not interested in gained points from leveling
@@ -1292,9 +1286,9 @@ do
12921286
if event == 'UNIT_PET' then
12931287
DispelList.Magic = CheckPetSpells()
12941288
elseif myClass == 'DRUID' then
1295-
local cure = Retail and CheckSpell(88423) -- Nature's Cure Spell
1289+
local cure = CheckSpell(88423) -- Nature's Cure Spell
12961290
local corruption = CheckSpell(2782) -- Remove Corruption (retail), Remove Curse (classic)
1297-
DispelList.Magic = cure or (Cata and corruption and CheckTalentClassic(3, 15)) -- Nature's Cure Talent
1291+
DispelList.Magic = cure
12981292
DispelList.Poison = cure or (not Classic and corruption) or CheckSpell(2893) or CheckSpell(8946) -- Abolish Poison / Cure Poison
12991293
DispelList.Curse = cure or corruption
13001294
elseif myClass == 'MAGE' then
@@ -1303,30 +1297,29 @@ do
13031297
DispelList.Magic = greater
13041298
elseif myClass == 'MONK' then
13051299
local mwDetox = CheckSpell(115450) -- Detox (Mistweaver)
1306-
local detox = mwDetox or CheckSpell(218164) -- Detox (Brewmaster or Windwalker)
1307-
DispelList.Magic = mwDetox
1300+
local detox = (not Retail and mwDetox) or (Retail and CheckSpell(218164)) -- Detox (Brewmaster or Windwalker)
1301+
DispelList.Magic = mwDetox and (not Mists or CheckSpell(115451))
13081302
DispelList.Disease = detox
13091303
DispelList.Poison = detox
13101304
elseif myClass == 'PALADIN' then
13111305
local cleanse = CheckSpell(4987) -- Cleanse
13121306
local purify = CheckSpell(1152) -- Purify
13131307
local toxins = cleanse or purify or CheckSpell(213644) -- Cleanse Toxins
1314-
DispelList.Magic = cleanse and (not Cata or CheckTalentClassic(1, 7)) -- Sacred Cleansing
1308+
DispelList.Magic = cleanse and (not Mists or CheckSpell(53551)) -- Sacred Cleansing
13151309
DispelList.Poison = toxins
13161310
DispelList.Disease = toxins
13171311
elseif myClass == 'PRIEST' then
13181312
local dispel = CheckSpell(527) -- Dispel Magic
13191313
DispelList.Magic = dispel or CheckSpell(32375)
13201314
DispelList.Disease = Retail and (IsPlayerSpell(390632) or CheckSpell(213634)) or not Retail and (CheckSpell(552) or CheckSpell(528)) -- Purify Disease / Abolish Disease / Cure Disease
13211315
elseif myClass == 'SHAMAN' then
1322-
local purify = Retail and CheckSpell(77130) -- Purify Spirit
1323-
local cleanse = purify or CheckSpell(51886) -- Cleanse Spirit (Retail/Cata)
1324-
local improvedCleanse = Cata and cleanse and CheckTalentClassic(3, 14) -- Improved Cleanse Spirit
1325-
local toxins = Retail and CheckSpell(383013) or CheckSpell(526) -- Poison Cleansing Totem (Retail), Cure Toxins (Classic)
1316+
local purify = CheckSpell(77130) -- Purify Spirit
1317+
local cleanse = purify or CheckSpell(51886) -- Cleanse Spirit (Retail/Mists)
1318+
local toxins = (Retail and CheckSpell(383013)) or (Classic and CheckSpell(526)) -- Poison Cleansing Totem (Retail), Cure Poison (Classic)
13261319
local cureDisease = Classic and CheckSpell(2870) -- Cure Disease
13271320
local diseaseTotem = Classic and CheckSpell(8170) -- Disease Cleansing Totem
13281321

1329-
DispelList.Magic = purify or improvedCleanse
1322+
DispelList.Magic = purify
13301323
DispelList.Curse = cleanse
13311324
DispelList.Poison = toxins
13321325
DispelList.Disease = cureDisease or diseaseTotem
@@ -1361,11 +1354,11 @@ do
13611354
frame:RegisterEvent('LEARNED_SPELL_IN_TAB')
13621355
frame:RegisterEvent('SPELLS_CHANGED')
13631356

1364-
if Retail or Cata then
1357+
if Retail or Mists then
13651358
frame:RegisterEvent('PLAYER_TALENT_UPDATE')
13661359
end
13671360

13681361
if myClass == 'WARLOCK' then
13691362
frame:RegisterUnitEvent('UNIT_PET', 'player')
13701363
end
1371-
end
1364+
end

Libs/LibDualSpec-1.0/CHANGES.txt

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,14 @@
1-
tag 4e9de3ba5e839c2a367923cf6cb9fcbd9334ae9e v1.26.0
1+
tag 4e7ef4037538ba67c119d1fb5b49aed52b4d806e v1.27.0
22
Author: Kyle Buller <[email protected]>
3-
Date: Fri May 16 21:29:27 2025 -0500
3+
Date: Thu Jul 3 06:45:41 2025 -0500
44

5-
Tagging as v1.26.0
5+
Tagging as v1.27.0
66

7-
commit 2ae6c12c4d0fffdca45e100dd0d4c8b5e1e83b1b
7+
commit 70bd5fb2d2935280111630ffe47aa799aee7b420
88
Author: Kyle Buller <[email protected]>
9-
Date: Fri May 16 21:22:02 2025 -0500
9+
Date: Thu Jul 3 06:42:44 2025 -0500
1010

11-
Bump TOCs
12-
13-
commit e54387bee68fa2fd39a5c3be1a7beb6508b8fd3e
14-
Author: Kyle Buller <[email protected]>
15-
Date: Fri May 16 21:21:49 2025 -0500
16-
17-
Add support for Mists of Pandaria Classic
18-
19-
commit 4f7845439afd38ee34ba5284e3f520cc7db76b45
20-
Author: Kyle Buller <[email protected]>
21-
Date: Fri May 16 21:20:28 2025 -0500
22-
23-
C_SpecializationInfo is in all versions
11+
Fix support for Mists of Pandaria Classic
12+
13+
Fixes #6
2414

Libs/LibDualSpec-1.0/LibDualSpec-1.0.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3434
-- Only load in Classic Era on Season of Discovery and Anniversary realms
3535
if WOW_PROJECT_ID == WOW_PROJECT_CLASSIC and C_Seasons.GetActiveSeason() ~= 2 and C_Seasons.GetActiveSeason() ~= 11 and C_Seasons.GetActiveSeason() ~= 12 then return end
3636

37-
local MAJOR, MINOR = "LibDualSpec-1.0", 26
37+
local MAJOR, MINOR = "LibDualSpec-1.0", 27
3838
assert(LibStub, MAJOR.." requires LibStub")
3939
local lib, minor = LibStub:NewLibrary(MAJOR, MINOR)
4040
if not lib then return end
@@ -343,7 +343,7 @@ for i = 1, numSpecs do
343343
return lib.currentSpec == specIndex and L_CURRENT:format(specNames[specIndex]) or specNames[specIndex]
344344
end,
345345
desc = not isRetail and function(info)
346-
if GetTalentTabInfo then -- Pre-5.0
346+
if ClassicExpansionAtMost(LE_EXPANSION_CATACLYSM) then -- Pre-5.0
347347
local specIndex = tonumber(info[#info]:sub(-1))
348348
local highPointsSpentIndex = nil
349349
for treeIndex = 1, 3 do

Libs/LibDualSpec-1.0/LibDualSpec-1.0.toc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
## Interface: 11506, 11507, 20504, 30404, 40402, 40401, 50500, 110105, 110107, 110100
22
## LoadOnDemand: 1
33
## Title: Lib: DualSpec-1.0
4-
## Version: v1.26.0
5-
## X-Date: 2025-05-17T2:22:02Z
4+
## Version: v1.27.0
5+
## X-Date: 2025-07-03T11:42:44Z
66
## Notes: Adds spec switching support to individual AceDB-3.0 databases.
77
## Author: Adirelle, Nebula
88
## OptionalDeps: Ace3

0 commit comments

Comments
 (0)