From 38c1189309732c1a4ebfa1461f437ed8273845c2 Mon Sep 17 00:00:00 2001 From: Michal Dziekonski Date: Sat, 14 Nov 2020 04:13:22 +0100 Subject: [PATCH] GH-131 Fix rapid fire distribution by correctly resetting total target ships counter (now ships can utilite full rapid fire potential, because previously "left-over shots" could have been wasted when being added to just one target user, where these shots should have been distributed better between other users in the first place) --- includes/CombatEngineAres.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/CombatEngineAres.php b/includes/CombatEngineAres.php index a508af5b7..f78158690 100644 --- a/includes/CombatEngineAres.php +++ b/includes/CombatEngineAres.php @@ -441,6 +441,7 @@ function Combat($Attacker, $Defender, $AttackerTech, $DefenderTech, $UseRapidFir } if(isset($DefShipsTypes[$TShip]) && $DefShipsTypes[$TShip] > 0) { + $TShipTotalCount = 0; $TotalForceNeed = 0; $TotalShootsNeed = 0; $GainedForce = 0; @@ -908,6 +909,7 @@ function Combat($Attacker, $Defender, $AttackerTech, $DefenderTech, $UseRapidFir } if(isset($AtkShipsTypes[$TShip]) && $AtkShipsTypes[$TShip] > 0) { + $TShipTotalCount = 0; $TotalForceNeed = 0; $TotalShootsNeed = 0; $GainedForce = 0;