Skip to content

Commit 59f8884

Browse files
chemicstryShauren
authored andcommitted
Core/Players: Use ChrRaces::Alliance instead of ChrRaces::BaseLanguage to determine faction
(cherry picked from commit 7c72f27)
1 parent 27bd089 commit 59f8884

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/server/game/Entities/Player/Player.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6282,10 +6282,10 @@ uint32 Player::TeamForRace(uint8 race)
62826282
{
62836283
if (ChrRacesEntry const* rEntry = sChrRacesStore.LookupEntry(race))
62846284
{
6285-
switch (rEntry->BaseLanguage)
6285+
switch (rEntry->Alliance)
62866286
{
6287+
case 0: return ALLIANCE;
62876288
case 1: return HORDE;
6288-
case 7: return ALLIANCE;
62896289
}
62906290
TC_LOG_ERROR("entities.player", "Race ({}) has wrong teamid ({}) in DBC: wrong DBC files?", uint32(race), rEntry->BaseLanguage);
62916291
}

0 commit comments

Comments
 (0)