Core/Battlegrounds: Clean up some Team/TeamId parameters to use enums instead of raw integer types
Port From (https://github.com/TrinityCore/TrinityCore/commit/1ef0c045202a6af33fb991f2ff765fa183ce976f)
This commit is contained in:
@@ -2634,7 +2634,7 @@ namespace Game.Spells
|
||||
{
|
||||
Battleground bg = player.GetBattleground();
|
||||
if (bg != null)
|
||||
bg.SetDroppedFlagGUID(go.GetGUID(), bg.GetPlayerTeam(player.GetGUID()) == Team.Alliance ? TeamId.Horde : TeamId.Alliance);
|
||||
bg.SetDroppedFlagGUID(go.GetGUID(), bg.GetPlayerTeam(player.GetGUID()) == Team.Alliance ? BatttleGroundTeamId.Horde : BatttleGroundTeamId.Alliance);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4995,9 +4995,9 @@ namespace Game.Entities
|
||||
// team that controls the workshop in the specified area
|
||||
uint team = bf.GetData(newArea);
|
||||
|
||||
if (team == TeamId.Horde)
|
||||
if (team == BatttleGroundTeamId.Horde)
|
||||
return spellId == 56618;
|
||||
else if (team == TeamId.Alliance)
|
||||
else if (team == BatttleGroundTeamId.Alliance)
|
||||
return spellId == 56617;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user