From: TheSaminator Date: Sat, 5 Mar 2022 00:35:02 +0000 (-0500) Subject: I forgor X-Git-Url: https://gitweb.starshipfights.net/?a=commitdiff_plain;h=9405ccaf931e620f9958244ed9b3337ed745e675;p=starship-fights I forgor --- diff --git a/src/commonMain/kotlin/starshipfights/game/ship_weapons.kt b/src/commonMain/kotlin/starshipfights/game/ship_weapons.kt index b23df0d..e4158e7 100644 --- a/src/commonMain/kotlin/starshipfights/game/ship_weapons.kt +++ b/src/commonMain/kotlin/starshipfights/game/ship_weapons.kt @@ -325,7 +325,7 @@ fun ShipInstance.afterTargeted(by: ShipInstance, weaponId: Id) = whe copy(fighterWings = fighterWings + setOf(ShipHangarWing(by.id, weaponId))) else copy(bomberWings = bomberWings + setOf(ShipHangarWing(by.id, weaponId))), - amount = 0 + amount = null ) } is ShipWeaponInstance.Torpedo -> {