Core/Reputation: Named all reputation flags

Port From (https://github.com/TrinityCore/TrinityCore/commit/f6b919fafe45aaeba0c5572925e47562158314b1)
This commit is contained in:
hondacrx
2021-06-05 20:15:28 -04:00
parent bebc93f82d
commit 6ab6fc81a5
6 changed files with 61 additions and 51 deletions
+1 -1
View File
@@ -1704,7 +1704,7 @@ namespace Game.Entities
{
var repState = player.GetReputationMgr().GetState(factionEntry);
if (repState != null)
if (!Convert.ToBoolean(repState.Flags & FactionFlags.AtWar))
if (!repState.Flags.HasFlag(ReputationFlags.AtWar))
return false;
}
}