This commit is contained in:
BeniS 2013-02-01 01:30:36 +13:00
parent de353e3b72
commit 859cb31f5d
1 changed files with 10 additions and 0 deletions

View File

@ -7,6 +7,7 @@ cooldownWindow = nil
cooldownButton = nil
contentsPanel = nil
spellCooldownPanel = nil
lastPlayer = nil
function init()
connect(g_game, { onGameStart = online,
@ -59,6 +60,15 @@ function online()
cooldownButton:hide()
cooldownWindow:close()
end
if lastPlayer ~= g_game.getCharacterName() then
refresh()
lastPlayer = g_game.getCharacterName()
end
end
function refresh()
spellCooldownPanel:destroyChildren()
end
function removeCooldown(progressRect)