From 58557214ce894ef454b6d98694a145ad10532064 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Wed, 8 Jun 2022 14:22:47 +0200 Subject: [PATCH] Hotfix WinconditionPointsAirShip --- .../fightsystem/winconditions/WinconditionPointsAirShip.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/winconditions/WinconditionPointsAirShip.java b/FightSystem_Core/src/de/steamwar/fightsystem/winconditions/WinconditionPointsAirShip.java index 978b898..124ed14 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/winconditions/WinconditionPointsAirShip.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/winconditions/WinconditionPointsAirShip.java @@ -136,7 +136,7 @@ public class WinconditionPointsAirShip extends PercentWincondition implements Li private void setup(int enemyBlocks){ points = 0; - int factorIndex = Math.min(Math.max(team.getPlayerCount(), Fight.getOpposite(team).getPlayerCount()), as.length); + int factorIndex = Math.min(Math.max(team.getPlayerCount(), Fight.getOpposite(team).getPlayerCount()), as.length) - 1; double a = as[factorIndex]; double e = es[factorIndex]; double volume = team.getSchemRegion().volume();