mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-16 05:55:07 +00:00
fix(Core/Reputation): Remove At War flag when rising above hated reputation. (#22386)
This commit is contained in:
@@ -432,6 +432,9 @@ bool ReputationMgr::SetOneFactionReputation(FactionEntry const* factionEntry, fl
|
|||||||
if (new_rank <= REP_HOSTILE)
|
if (new_rank <= REP_HOSTILE)
|
||||||
SetAtWar(&itr->second, true);
|
SetAtWar(&itr->second, true);
|
||||||
|
|
||||||
|
if (old_rank == REP_HOSTILE && new_rank >= REP_UNFRIENDLY && factionEntry->CanBeSetAtWar())
|
||||||
|
SetAtWar(&itr->second, false);
|
||||||
|
|
||||||
if (new_rank > old_rank)
|
if (new_rank > old_rank)
|
||||||
_sendFactionIncreased = true;
|
_sendFactionIncreased = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user