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