mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-06 08:59:11 +01:00
Core/Conditions: Fixed evaluation of CurrentPvpFaction outside arenas or battlegrounds (#29882)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user