mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 04:24:54 +02:00
* Fixed calling local in an if statement where it is not required (lol). * Fixed an issue with the auto walk checker.
This commit is contained in:
@@ -79,7 +79,7 @@ function onSpellCooldown(iconId, duration)
|
||||
if not spellName then return end
|
||||
|
||||
local ping = g_game.getPing()
|
||||
if ping > 0 then local duration = duration - (ping/2) end
|
||||
if ping > 0 then duration = duration - (ping/2) end
|
||||
local otcIconId = tonumber(SpellInfo[modules.game_spelllist.getSpelllistProfile()][spellName].icon)
|
||||
if not otcIconId and SpellIcons[SpellInfo[modules.game_spelllist.getSpelllistProfile()][spellName].icon] then
|
||||
otcIconId = SpellIcons[SpellInfo[modules.game_spelllist.getSpelllistProfile()][spellName].icon][1]
|
||||
@@ -105,7 +105,7 @@ function onSpellGroupCooldown(groupId, duration)
|
||||
if not SpellGroups[groupId] then return end
|
||||
|
||||
local ping = g_game.getPing()
|
||||
if ping > 0 then local duration = duration - (ping/2) end
|
||||
if ping > 0 then duration = duration - (ping/2) end
|
||||
local icon = contentsPanel:getChildById('groupIcon' .. SpellGroups[groupId])
|
||||
local progressRect = contentsPanel:getChildById('progressRect' .. SpellGroups[groupId])
|
||||
if icon then
|
||||
|
Reference in New Issue
Block a user