Scripts/Commands: Fix .mod rep faction not updating client side reputation

Closes #7939
Closes #9354
This commit is contained in:
SgT-Fatality
2013-03-09 15:58:25 +00:00
committed by Nay
parent 47f7687bab
commit 8e8617cfe6
2 changed files with 3 additions and 2 deletions

View File

@@ -1249,6 +1249,7 @@ public:
}
target->GetReputationMgr().SetOneFactionReputation(factionEntry, amount, false);
target->GetReputationMgr().SendState(target->GetReputationMgr().GetState(factionEntry));
handler->PSendSysMessage(LANG_COMMAND_MODIFY_REP, factionEntry->name[handler->GetSessionDbcLocale()], factionId,
handler->GetNameLink(target).c_str(), target->GetReputationMgr().GetReputation(factionEntry));
return true;