mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Core/Reputation: The at-war flag is now turned off any time a player crosses a threshold increasing their reputation
This commit is contained in:
@@ -401,6 +401,8 @@ bool ReputationMgr::SetOneFactionReputation(FactionEntry const* factionEntry, in
|
||||
|
||||
if (new_rank <= REP_HOSTILE)
|
||||
SetAtWar(&itr->second, true);
|
||||
else if (new_rank > old_rank)
|
||||
SetAtWar(&itr->second, false);
|
||||
|
||||
if (new_rank > old_rank)
|
||||
_sendFactionIncreased = true;
|
||||
|
||||
Reference in New Issue
Block a user