fix(Core/Reputation): Remove At War flag when rising above hated reputation. (#22386)
This commit is contained in:
parent
273607b38a
commit
12328920dd
1 changed files with 3 additions and 0 deletions
|
|
@ -432,6 +432,9 @@ bool ReputationMgr::SetOneFactionReputation(FactionEntry const* factionEntry, fl
|
|||
if (new_rank <= REP_HOSTILE)
|
||||
SetAtWar(&itr->second, true);
|
||||
|
||||
if (old_rank == REP_HOSTILE && new_rank >= REP_UNFRIENDLY && factionEntry->CanBeSetAtWar())
|
||||
SetAtWar(&itr->second, false);
|
||||
|
||||
if (new_rank > old_rank)
|
||||
_sendFactionIncreased = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue