Shestak UI
Go Back   Shestak UI > Interface Forums > English Community > Bugs Reports

Bugs Reports Report any bugs or issues you come across with ShestakUI.

Advertising

 
Thread Tools
Old 08.12.2012, 18:44   #1
 Member User Information

puntr's Avatar
Bug Professions Tab

ShestakUI version:
4.27

WoW version:
5.1

Installed and running addons:
Doesn't Matter

Screenshot(if that matters for error):

Hidden text

[hide]

Hidden text

[hide]


Lua error code(if that matters for error):
Doesn't matter

How to reproduce error:
Not generating rank (there for breaking "if name and rank and texture then" in "HandleProfession(object, professionID)" when racials allow for profession skill >= normal max

Changing ShestakUI/Modules/Misc/ProfessionTab.lua from
Code [Select]:
local function GetProfessionRank(currentSkill)
	for index = 1, #ranks do
		local requiredSkill, title = ranks[index][1], ranks[index][2]

		if currentSkill <= requiredSkill then
			return title
		end
	end
end
to
Code [Select]:
local function GetProfessionRank(currentSkill)
	for index = #ranks, 1, -1 do
		local requiredSkill, title = ranks[index][1], ranks[index][2]

		if currentSkill >= requiredSkill then
			return title
		end
	end
end
fixes the bug
Say Thank:
Shestak (08.12.2012)
Old 08.12.2012, 18:44   #1.5 - Disable Ads

Advertise on this site

Old 09.12.2012, 11:59   #2
Shestak
 Junior Member User Information

Shestak's Avatar
https://github.com/Shestak/ShestakUI...0c59f1249341e5

Tags
professions

Thread Tools



Mobile Style Русский English Deutsch Italian Chinese