фиксы обновления

This commit is contained in:
2026-08-02 20:25:03 +04:00
parent aa95d99b18
commit 4b88e1f171
11 changed files with 37 additions and 33 deletions
@@ -27,6 +27,7 @@
#include "Player.h"
#include "PoolMgr.h"
#include "QuestPackets.h"
#include "RaceMgr.h"
#include "ReputationMgr.h"
#include "ScriptMgr.h"
#include "SpellAuraEffects.h"
@@ -1137,7 +1138,9 @@ bool Player::SatisfyQuestRace(Quest const* qInfo, bool msg) const
// while still respecting truly race-specific quests on the opposite side.
if (GetTeamId() != GetTeamId(true))
{
uint32 currentFactionRaceMask = (GetTeamId() == TEAM_ALLIANCE) ? RACEMASK_ALLIANCE : RACEMASK_HORDE;
uint32 currentFactionRaceMask = (GetTeamId() == TEAM_ALLIANCE)
? sRaceMgr->GetAllianceRaceMask()
: sRaceMgr->GetHordeRaceMask();
if ((reqraces & currentFactionRaceMask) == reqraces)
return true;
}