mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-21 15:13:26 +02:00
Version 2.4 - http://otclient.net/showthread.php?tid=160
This commit is contained in:
@@ -51,9 +51,9 @@ function setupExtraHotkeys(combobox)
|
||||
end
|
||||
local battlePanel = modules.game_battle.battlePanel
|
||||
local attackedCreature = g_game.getAttackingCreature()
|
||||
local prevChild = battlePanel:getLastChild()
|
||||
local prevChild = nil
|
||||
for i, child in ipairs(battlePanel:getChildren()) do
|
||||
if not child.creature or child:isDisabled() then
|
||||
if not child.creature or child:isDisabled() or child:isHidden() then
|
||||
break
|
||||
end
|
||||
if child.creature == attackedCreature then
|
||||
|
Reference in New Issue
Block a user