EC: SkillTracker window shows incorrect auto-lock cap when the skill level changes.
In the EC the Skills Tracker window will show the default max skill level cap instead of the auto-lock cap when the skill value changes. This is due to a LUA script engine compiler bug that optimizes out a variable. The following code change will prevent that optimization from happening
In the function SkillsTracker.UpdateSkill in the file source\SkillsTracker.lua add the indicated lines
In the function SkillsTracker.UpdateSkill in the file source\SkillsTracker.lua add the indicated lines
--start of added codeTo the function SkillsTracker.Update in source\SkillsTracker.lua modify the indicated line near the bottom of the function
skillId = skillId + 0 -- work around to a LUA script engine optimization bug
--end of added code
if (SkillsWindow.SkillTargetVals[skillId]) then
skillLevelCap = SkillsWindow.SkillTargetVals[skillId]
end
local displayName = GetStringFromTid(WindowData.SkillsCSV[skillId].NameTid)
LabelSetText(skillWindowName.."Name", displayName)
-- start of modified code
-- modify this line SkillsTracker.UpdateSkill(serverId)
SkillsTracker.UpdateSkill(serverId, skillId)
-- end of modified code