From fbdee9c238ebfe8be6b4d986467210c545eb1cf0 Mon Sep 17 00:00:00 2001 From: ElTata <eltata@firemail.cc> Date: Wed, 8 Apr 2020 10:27:27 +0200 Subject: [PATCH] Fix number of player in team battle Loop went to 7 seven players, corrected to 6 --- Irpg/Action.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Irpg/Action.pm b/Irpg/Action.pm index 7212728..76dcc8e 100644 --- a/Irpg/Action.pm +++ b/Irpg/Action.pm @@ -361,7 +361,7 @@ sub team_battle { # pit three players against three other players my ($mysum, $oppsum) = (0, 0); my ($myroll, $opproll) = (0, 0); my ($action_type, $sum, $mod); - for (my $i = 0; $i <= 6 ; $i++) { + for (my $i = 0; $i < 6 ; $i++) { $action_type = choose_action($opp[$i]); $sum = int(itemsum($opp[$i],1)); if ($i < 3) { -- GitLab