mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-22 07:47:36 -04:00
Scripts/Commands: Fix .mod rep faction not updating client side reputation
Closes #7939 Closes #9354
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user