Changes

m
try to fix
Line 585: Line 585:  
function ShipCapabilities:asw_attack()
 
function ShipCapabilities:asw_attack()
 
local base_asw
 
local base_asw
local asw_override, opening, day, night = self._ship:asw_attack(), self._ship():opening_asw(), true, true
+
local asw_override, opening, day, night = self._ship:asw_attack(), false, true, true
 
if asw_override == false then
 
if asw_override == false then
 
return false
 
return false
Line 598: Line 598:  
return false
 
return false
 
end
 
end
 +
if self._ship._opening_asw then
 +
    opening = true
 +
    end
 
local asw_leveled = self._ship:asw_leveled()
 
local asw_leveled = self._ship:asw_leveled()
 
local ship_asw, equipment_asw, depth_charge, sonar, bomber = (asw_leveled or 0), 0, false, false, false
 
local ship_asw, equipment_asw, depth_charge, sonar, bomber = (asw_leveled or 0), 0, false, false, false
Anonymous user