Core/Conditions: Fixed evaluation of CurrentPvpFaction outside arenas or battlegrounds (#29882)

This commit is contained in:
Meji
2024-04-01 20:32:08 +02:00
committed by GitHub
parent 2af957c2ad
commit 47e4bf06d3

View File

@@ -3011,7 +3011,7 @@ bool ConditionMgr::IsPlayerMeetingCondition(Player const* player, PlayerConditio
if (player->GetMap()->IsBattlegroundOrArena())
team = player->m_playerData->ArenaFaction;
else
team = player->GetTeamId();
team = player->GetTeamId() == TEAM_ALLIANCE ? 1 : 0;
if (condition->CurrentPvpFaction - 1 != team)
return false;