Core/Reputation: Fix Oracles/Frenzyheart not being set to war properly

Closes #9469
This commit is contained in:
sirikfoll
2020-03-13 18:15:45 +01:00
committed by Killyana
parent 7a4409b51f
commit 47c49c3912

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))
if (atWar && (faction->Flags & FACTION_FLAG_PEACE_FORCED) && !(faction->Flags & FACTION_FLAG_RIVAL) && ReputationToRank(faction->Standing) > REP_HATED)
return;
// already set