Core/Battlegrounds: Set PLAYER_FLAGS_EX_MERCENARY_MODE for mercenary players
Port From (https://github.com/TrinityCore/TrinityCore/commit/798693c0b8c6f4ae43f908c9239e14bcf4c3b76f)
This commit is contained in:
@@ -3518,14 +3518,11 @@ namespace Game.Entities
|
||||
|
||||
public void SwitchToOppositeTeam(bool apply)
|
||||
{
|
||||
m_team = GetNativeTeam();
|
||||
m_team = TeamForRace(GetRace());
|
||||
|
||||
if (apply)
|
||||
m_team = (m_team == Team.Alliance) ? Team.Horde : Team.Alliance;
|
||||
}
|
||||
|
||||
public Team GetNativeTeam() { return TeamForRace(GetRace()); }
|
||||
public uint GetNativeTeamId() { return TeamIdForRace(GetRace()); }
|
||||
|
||||
public void SetFactionForRace(Race race)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user