Update battle.lua

Indentation
This commit is contained in:
4drik 2019-11-21 13:26:04 +01:00 committed by diath
parent 3019e88293
commit 14a93a13c8

View File

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