fix(Core/Graveyards): rework the graveyard selection logic to allow l… (#8022)

This commit is contained in:
Skjalf
2021-10-13 15:07:19 -03:00
committed by GitHub
parent 92a7f8b5bd
commit 747a2a4f0e
3 changed files with 40 additions and 18 deletions

View File

@@ -39,6 +39,8 @@ struct GraveyardData
{
uint32 safeLocId;
TeamId teamId;
[[nodiscard]] bool IsNeutralOrFriendlyToTeam(TeamId playerTeamId) const { return teamId == TEAM_NEUTRAL || playerTeamId == TEAM_NEUTRAL || teamId == playerTeamId; }
};
typedef std::multimap<uint32, GraveyardData> WGGraveyardContainer;