Fixed #169 Thanks Quintinon and #170! Also some other fixes:

* 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:
BeniS
2013-01-08 15:55:41 +13:00
parent 3ed2eeb104
commit 702fce0be8
6 changed files with 13 additions and 5 deletions

View File

@@ -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