фиксы обновления
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user