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
+2 -2
View File
@@ -3134,7 +3134,7 @@ void Player::InitTalentForLevel()
// Remove all talent points
if (m_usedTalentCount > 0) // Free any used talents
{
resetTalents(true);
resetTalents(true); /// @todo: Has to (collectively) be renamed to ResetTalents
SetFreeTalentPoints(0);
}
}
@@ -18905,7 +18905,7 @@ void Player::SaveToDB(bool create /*=false*/)
if (create)
{
//! Insert query
//! TO DO: Filter out more redundant fields that can take their default value at player create
/// @todo: Filter out more redundant fields that can take their default value at player create
stmt = CharacterDatabase.GetPreparedStatement(CHAR_INS_CHARACTER);
stmt->setUInt32(index++, GetGUIDLow());
stmt->setUInt32(index++, GetSession()->GetAccountId());
@@ -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;