azerothcore / mod-cfbg

Cross-faction Battleground for AzerothCore
MIT License
13 stars 42 forks source link

feat(EvenTeams): improve balance checking players level and avg item level before enter battle #32

Closed Helias closed 3 years ago

Helias commented 3 years ago

This PR improves the balance of the teams calculating the average player level and (avg) item level of the joined queue.

If there are 2 players in the battleground 15 vs 19, and two other players join with CFBG.EvenTeams enabled, regardless when they enter the battle their team will be calculated based on the next players which are joining.

So, having 15 v 19, if two players with level 19 and 18 join the queue when they can enter to the battle the core now calculates if the first player who click on "Enter Battle" is stronger than the other or not, based on this the team will be chosen for him.