Skip to content

Commit 4c8aee5

Browse files
committed
Use in-game function instead of enum
1 parent 2e9d426 commit 4c8aee5

3 files changed

Lines changed: 1 addition & 315 deletions

File tree

Core.lua

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -297,13 +297,6 @@ function MoreTooltipInfo.GetItemSpellID(itemID)
297297
end
298298
end
299299

300-
function MoreTooltipInfo.GetConduitSpellID(conduitID)
301-
local spellID = MoreTooltipInfo.Enum.Conduits[conduitID]
302-
if spellID then
303-
return spellID
304-
end
305-
end
306-
307300
function MoreTooltipInfo.GetRPPM(spellID)
308301
local rppmtable = MoreTooltipInfo.Enum.RPPM[spellID]
309302
if not rppmtable then
@@ -729,7 +722,7 @@ function MoreTooltipInfo.SpellTooltipOverride(option, self, ...)
729722
spellID = select(10, UnitDebuff(...))
730723
elseif option == "conduit" then
731724
conduitID = select(1, ...)
732-
spellID = MoreTooltipInfo.GetConduitSpellID(conduitID) --get spell id from game file
725+
spellID = C_Soulbinds.GetConduitSpellID(conduitID,select(2, ...))
733726
elseif option == "talent" then
734727
talentID = select(1, ...)
735728
spellID = select(6, GetTalentInfoByID(talentID))

Enum/ConduitsSpell.lua

Lines changed: 0 additions & 306 deletions
This file was deleted.

MoreTooltipInfo.toc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ Enum\ItemSpell.lua
1919
Enum\ItemDPS.lua
2020
Enum\TriggerGCD.lua
2121
Enum\SpellEnchants.lua
22-
Enum\ConduitsSpell.lua

0 commit comments

Comments
 (0)