Line 326:
Line 326:
return nil
return nil
end
end
+
--[[
local has_bomber_planes = false
local has_bomber_planes = false
for i = 1, self._ship:slots_length() do
for i = 1, self._ship:slots_length() do
Line 334:
Line 335:
end
end
end
end
+
]]--
local is_installation_bbv = self._ship:speed() == 0 and self._ship:type() == 10
local is_installation_bbv = self._ship:speed() == 0 and self._ship:type() == 10
−
if not self:_is_carrier() and (not is_installation_bbv or not has_bomber_planes) then
+
if not self:_is_carrier() and not is_installation_bbv then
if firepower > 0 then
if firepower > 0 then
for i = 1, self._ship:slots_length() do
for i = 1, self._ship:slots_length() do