mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user