From 1a008c68b5cffa115e8557cf08ef8445c6cef476 Mon Sep 17 00:00:00 2001 From: blubFisch Date: Mon, 10 Oct 2022 12:48:41 +0100 Subject: [PATCH] Refactor --- maps/scrap_towny_ffa/team.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/maps/scrap_towny_ffa/team.lua b/maps/scrap_towny_ffa/team.lua index df96c339..5dd01962 100644 --- a/maps/scrap_towny_ffa/team.lua +++ b/maps/scrap_towny_ffa/team.lua @@ -1,7 +1,6 @@ local Public = {} local math_random = math.random -local math_min = math.min local table_size = table.size local string_match = string.match local string_lower = string.lower @@ -805,9 +804,7 @@ local function kill_force(force_name, cause) e.die() elseif destroy_wall_types[e.type] == true then e.die() - elseif storage_types[e.type] == true then - -- spare chests - else + elseif storage_types[e.type] ~= true then -- spare chests local random = math_random() if random > 0.5 or e.health == nil then e.die()