mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 03:24:55 +02:00
Fix death message
This commit is contained in:
@@ -27,10 +27,8 @@ function display()
|
||||
end
|
||||
|
||||
function displayDeadMessage()
|
||||
local advanceLabel = modules.game_interface.getMapPanel():recursiveGetChildById('centerAdvance')
|
||||
if advanceLabel:isVisible() then
|
||||
return
|
||||
end
|
||||
local advanceLabel = modules.game_interface.getRootPanel():recursiveGetChildById('middleCenterLabel')
|
||||
if advanceLabel:isVisible() then return end
|
||||
|
||||
modules.game_textmessage.displayGameMessage(tr('You are dead.'))
|
||||
end
|
||||
|
Reference in New Issue
Block a user