mirror of
https://github.com/edubart/otclient.git
synced 2025-05-06 12:39:21 +02:00
Update battle.lua
Indentation
This commit is contained in:
parent
3019e88293
commit
14a93a13c8
@ -249,25 +249,25 @@ end
|
|||||||
|
|
||||||
function doShowCreatureAtBattle(creature)
|
function doShowCreatureAtBattle(creature)
|
||||||
if doCreatureFitFilters(creature) then
|
if doCreatureFitFilters(creature) then
|
||||||
local hidePlayers = hidePlayersButton:isChecked()
|
local hidePlayers = hidePlayersButton:isChecked()
|
||||||
local hideNPCs = hideNPCsButton:isChecked()
|
local hideNPCs = hideNPCsButton:isChecked()
|
||||||
local hideMonsters = hideMonstersButton:isChecked()
|
local hideMonsters = hideMonstersButton:isChecked()
|
||||||
local hideSkulls = hideSkullsButton:isChecked()
|
local hideSkulls = hideSkullsButton:isChecked()
|
||||||
local hideParty = hidePartyButton:isChecked()
|
local hideParty = hidePartyButton:isChecked()
|
||||||
|
|
||||||
if hidePlayers and creature:isPlayer() then
|
if hidePlayers and creature:isPlayer() then
|
||||||
return false
|
return false
|
||||||
elseif hideNPCs and creature:isNpc() then
|
elseif hideNPCs and creature:isNpc() then
|
||||||
return false
|
return false
|
||||||
elseif hideMonsters and creature:isMonster() then
|
elseif hideMonsters and creature:isMonster() then
|
||||||
return false
|
return false
|
||||||
elseif hideSkulls and creature:isPlayer() and creature:getSkull() == SkullNone then
|
elseif hideSkulls and creature:isPlayer() and creature:getSkull() == SkullNone then
|
||||||
return false
|
return false
|
||||||
elseif hideParty and creature:getShield() > ShieldWhiteBlue then
|
elseif hideParty and creature:getShield() > ShieldWhiteBlue then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user