azerothcore / mod-cfbg

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

Teams should be balanced according to player level (and item level) #27

Closed FrancescoBorzi closed 3 years ago

FrancescoBorzi commented 3 years ago

We are using

CFBG.Include.Avg.Ilvl.Enable = 1

but it does not seem to create balanced teams.

We started a 3 vs 3 BG at 10-19 where the teams were:

so it was completely unbalanced xD


I think we need a new config, such as

CFBG.BalancedTeams = 1

when enabled, teams should be balanced with levels AND by item level.

So that when a new player queues, it will end up with the team having the lowest character level (sum of all players). If the level is the same, it will end up to the team having the lowest item level (sum of all players).

Helias commented 3 years ago

The average item level calculation was totally wrong because it considered the real faction of the player instead of the fake one, so it can never do the right balance.

I implemented this BalanceTeams feature and fixed the average item level calculation.

https://github.com/azerothcore/mod-cfbg/pull/28