From 6ac581c0c8a17e7b5bc611c478eb4ea554072da5 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Fri, 7 Jan 2022 11:40:57 -0500 Subject: [PATCH] Core/Reputation: Fix Oracles/Frenzyheart not being set to war properly Port From (https://github.com/TrinityCore/TrinityCore/commit/759482b42bc32e71aef54f26a8428b0000edfbac) --- Source/Game/Reputation/ReputationManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Reputation/ReputationManager.cs b/Source/Game/Reputation/ReputationManager.cs index e07928e4e..3392a1ba2 100644 --- a/Source/Game/Reputation/ReputationManager.cs +++ b/Source/Game/Reputation/ReputationManager.cs @@ -549,7 +549,7 @@ namespace Game void SetAtWar(FactionState faction, bool atWar) { // 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(CliDB.FactionStorage.LookupByKey(faction.Id)) > ReputationRank.Hated) return; // already set