Core/Reputation: Take base faction reputation into account when checking standing for at-war eligibility - change sneaked in a cherry-pick commit 759482b42b

This commit is contained in:
Shauren
2021-12-23 00:52:51 +02:00
parent 806c606787
commit 9fcb9c4def

View File

@@ -478,7 +478,7 @@ void ReputationMgr::SetAtWar(RepListID repListID, bool on)
void ReputationMgr::SetAtWar(FactionState* faction, bool atWar) const
{
// Do not allow to declare war to our own faction. But allow for rival factions (eg Aldor vs Scryer).
if (atWar && (faction->Flags & FACTION_FLAG_PEACE_FORCED) && !(faction->Flags & FACTION_FLAG_RIVAL) && ReputationToRank(faction->Standing) > REP_HATED)
if (atWar && (faction->Flags & FACTION_FLAG_PEACE_FORCED) && !(faction->Flags & FACTION_FLAG_RIVAL) && GetRank(sFactionStore.AssertEntry(faction->ID)) > REP_HATED)
return;
// already set