Core/Conditions: Fixed evaluation of CurrentPvpFaction outside arenas or battlegrounds
Port From (https://github.com/TrinityCore/TrinityCore/commit/47e4bf06d395cd92a90555594dd1264e628f10e0)
This commit is contained in:
@@ -2089,7 +2089,7 @@ namespace Game
|
|||||||
if (player.GetMap().IsBattlegroundOrArena())
|
if (player.GetMap().IsBattlegroundOrArena())
|
||||||
team = player.m_playerData.ArenaFaction;
|
team = player.m_playerData.ArenaFaction;
|
||||||
else
|
else
|
||||||
team = (byte)player.GetTeamId();
|
team = (byte)(player.GetTeamId() == BattleGroundTeamId.Alliance ? 1 : 0);
|
||||||
|
|
||||||
if (condition.CurrentPvpFaction - 1 != team)
|
if (condition.CurrentPvpFaction - 1 != team)
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user