mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-19 06:03:27 +02:00
Bug fixes for preys and imbuing
This commit is contained in:
@@ -32,20 +32,21 @@ function init()
|
||||
groupsCombo.onOptionChange = function(widget)
|
||||
imbueLevelsCombo:clear()
|
||||
if itemImbuements ~= nil then
|
||||
local selectedGroup = widget:getCurrentOption()["text"]
|
||||
selectedImbue = itemImbuements[widget.currentIndex]
|
||||
local selectedGroup = groupsCombo:getCurrentOption().text
|
||||
for _,imbuement in ipairs(itemImbuements) do
|
||||
if imbuement["group"] == selectedGroup then
|
||||
emptyImbue.imbuement:addOption(imbuement["name"])
|
||||
emptyImbue.imbuement:addOption(imbuement["name"])
|
||||
end
|
||||
end
|
||||
imbueLevelsCombo.onOptionChange(imbueLevelsCombo) -- update options
|
||||
end
|
||||
end
|
||||
|
||||
imbueLevelsCombo.onOptionChange = function(widget)
|
||||
setProtection(false)
|
||||
local selectedGroup = groupsCombo:getCurrentOption().text
|
||||
for _,imbuement in ipairs(itemImbuements) do
|
||||
if imbuement["group"] == selectedImbue["group"] then
|
||||
if imbuement["group"] == selectedGroup then
|
||||
if #imbuement["sources"] == widget.currentIndex then
|
||||
selectedImbue = imbuement
|
||||
for i,source in ipairs(imbuement["sources"]) do
|
||||
|
Reference in New Issue
Block a user