From 44c8b66481b19655c86e0d0733b1fbd5ec475c0a Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Fri, 12 Mar 2010 04:32:01 -0500 Subject: [PATCH] In Player:SetProfessions(): Get rid of the check for smelting/mining - there is no mining tradeskill UI, so we just ignore it and add smelting like any other tradeskill. --- Player.lua | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Player.lua b/Player.lua index 7129b72..bb2dd5e 100644 --- a/Player.lua +++ b/Player.lua @@ -111,8 +111,6 @@ function Player:SetProfessions() for i in pairs(profession_list) do profession_list[i] = false end - local smelting_spell = GetSpellInfo(2656) - local mining_spell = GetSpellInfo(32606) for index = 1, 25, 1 do local spell_name = GetSpellName(index, BOOKTYPE_SPELL) @@ -122,13 +120,8 @@ function Player:SetProfessions() end -- Check for false in the profession_list - a nil entry means we don't care about the spell. - if profession_list[spell_name] == false or spell_name == smelting_spell then - -- If the player has smelting, then mining is also known. - if spell_name == smelting_spell then - profession_list[mining_spell] = true - else - profession_list[spell_name] = true - end + if profession_list[spell_name] == false then + profession_list[spell_name] = true end end end -- 1.7.9.5