Line 282: |
Line 282: |
| torp = ship._torpedo_max or "", | | torp = ship._torpedo_max or "", |
| fp_plus_torp = ship._firepower_max + (ship._torpedo_max or 0), | | fp_plus_torp = ship._firepower_max + (ship._torpedo_max or 0), |
− | db_attack = format_damage(ship, Combat.shelling, nil, setup, "main", setup.spotting, true), | + | db_attack = format_damage(ship, Combat.shelling, nil, setup, "main", setup and setup.spotting, true), |
| db_torp = format_damage(ship, Combat.torpedo, nil, setup, "torpedo"), | | db_torp = format_damage(ship, Combat.torpedo, nil, setup, "torpedo"), |
| nb_da = format_damage(ship, Combat.night_battle, Combat.modifier.night_attack.double, setup, "main"), | | nb_da = format_damage(ship, Combat.night_battle, Combat.modifier.night_attack.double, setup, "main"), |