Core/Players: Fix console errors of wrong teamid for neutral pandaren race

(cherry picked from commit aac5581bfc)
This commit is contained in:
aquadeus
2024-03-23 19:20:03 +01:00
committed by funjoker
parent 7a6d78c90a
commit 98cb0b4eaf
2 changed files with 2 additions and 0 deletions

View File

@@ -6332,6 +6332,7 @@ Team Player::TeamForRace(uint8 race)
{
case 0: return ALLIANCE;
case 1: return HORDE;
case 2: return PANDARIA_NEUTRAL;
}
TC_LOG_ERROR("entities.player", "Race ({}) has wrong teamid ({}) in DBC: wrong DBC files?", uint32(race), rEntry->Alliance);
}

View File

@@ -1138,6 +1138,7 @@ enum Team
//TEAM_HORDE_FORCES = 892,
//TEAM_SANCTUARY = 936,
//TEAM_OUTLAND = 980,
PANDARIA_NEUTRAL = 1249, // Starting pandas should have this team
TEAM_OTHER = 0 // if ReputationListId > 0 && Flags != FACTION_FLAG_TEAM_HEADER
};