Skip to content

Commit

Permalink
Add new Mining Spell for Khaz Algar
Browse files Browse the repository at this point in the history
  • Loading branch information
marthammor authored Aug 24, 2024
1 parent f57a978 commit 1f8a91e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Collector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Convert for 2.4 spell IDs
]]
local miningSpell = (GetSpellName(2575))
local miningSpell2 = (GetSpellName(195122))
local miningSpell3 = (GetSpellName(423341)) -- Khaz Algar
local herbSpell = (GetSpellName(2366))
local herbSkill = ((GetSpellName(170691)) or (string.gsub((GetSpellName(9134)),"%A","")))
local fishSpell = (GetSpellName(7620)) or (GetSpellName(131476))
Expand All @@ -30,6 +31,7 @@ local spells =
{ -- spellname to "database name"
[miningSpell] = "Mining",
[miningSpell2] = "Mining",
[miningSpell3] = "Mining",
[herbSpell] = "Herb Gathering",
[fishSpell] = "Fishing",
[gasSpell] = "Extract Gas",
Expand Down Expand Up @@ -181,7 +183,7 @@ end
function Collector:UIError(event,token,msg)
local what = tooltipLeftText1:GetText();
if not what then return end
if strfind(msg, miningSpell) or (miningSpell2 and strfind(msg, miningSpell2)) then
if strfind(msg, miningSpell) or (miningSpell2 and strfind(msg, miningSpell2) or (miningSpell3 and strfind(msg, miningSpell3))) then
self:addItem(miningSpell,what)
elseif strfind(msg, herbSkill) then
self:addItem(herbSpell,what)
Expand Down

0 comments on commit 1f8a91e

Please sign in to comment.