mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-20 06:33:26 +02:00
Added keypad, fixed one crash bug and few more features for mobile version
This commit is contained in:
@@ -25,7 +25,7 @@ function setupExtraHotkeys(combobox)
|
||||
local nextChild = nil
|
||||
local breakNext = false
|
||||
for i, child in ipairs(battlePanel:getChildren()) do
|
||||
if not child.creature or child:isDisabled() then
|
||||
if not child.creature or not child:isOn() then
|
||||
break
|
||||
end
|
||||
nextChild = child
|
||||
@@ -53,7 +53,7 @@ function setupExtraHotkeys(combobox)
|
||||
local attackedCreature = g_game.getAttackingCreature()
|
||||
local prevChild = nil
|
||||
for i, child in ipairs(battlePanel:getChildren()) do
|
||||
if not child.creature or child:isDisabled() or child:isHidden() then
|
||||
if not child.creature or not child:isOn() then
|
||||
break
|
||||
end
|
||||
if child.creature == attackedCreature then
|
||||
|
Reference in New Issue
Block a user