This commit is contained in:
OTCv8
2020-06-09 18:19:20 +02:00
parent 76d6f2ce7d
commit 541e189d3f
154 changed files with 2540 additions and 1221 deletions

View File

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