mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-31 06:07:37 +01:00
Core/Players: Don't trigger quest objective and criteria updates for gold modifications before quest log and criteria progress are loaded
This commit is contained in:
@@ -24477,9 +24477,15 @@ bool Player::ModifyMoney(int64 amount, bool sendError /*= true*/)
|
||||
|
||||
void Player::SetMoney(uint64 value)
|
||||
{
|
||||
MoneyChanged(value);
|
||||
bool loading = GetSession()->PlayerLoading();
|
||||
|
||||
if (!loading)
|
||||
MoneyChanged(value);
|
||||
|
||||
SetUpdateFieldValue(m_values.ModifyValue(&Player::m_activePlayerData).ModifyValue(&UF::ActivePlayerData::Coinage), value);
|
||||
UpdateCriteria(CriteriaType::MostMoneyOwned);
|
||||
|
||||
if (!loading)
|
||||
UpdateCriteria(CriteriaType::MostMoneyOwned);
|
||||
}
|
||||
|
||||
bool Player::IsQuestRewarded(uint32 quest_id) const
|
||||
|
||||
Reference in New Issue
Block a user