Core/Reputation: Fix Oracles/Frenzyheart not being set to war properly
Port From (https://github.com/TrinityCore/TrinityCore/commit/759482b42bc32e71aef54f26a8428b0000edfbac)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user