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

Closes #9469

(cherry picked from commit 47c49c391233d67e7cf992a2df9516f36d4f8ee5)
This commit is contained in:
sirikfoll
2021-12-23 00:52:51 +01:00
committed by Shauren
parent caac215785
commit 759482b42b
+1 -1
View File
@@ -570,7 +570,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.HasFlag(ReputationFlags::Peaceful))
if (atWar && faction->Flags.HasFlag(ReputationFlags::Peaceful) && GetRank(sFactionStore.AssertEntry(faction->ID)) > REP_HATED)
return;
// already set