When a team dies during their own turn, if there is more than one team remaining, the code attempts to use a list of living teams to find the next team, with the previous team as a reference. If that previous team is dead, it does not appear in the said list, and the next team cannot be found.
When a team dies during their own turn, if there is more than one team remaining, the code attempts to use a list of living teams to find the next team, with the previous team as a reference. If that previous team is dead, it does not appear in the said list, and the next team cannot be found.