mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-26 20:02:25 +01:00
Core/Guilds: fixed updating profession skill values in guild roster when gaining skill points
This commit is contained in:
@@ -5885,7 +5885,11 @@ bool Player::UpdateSkillPro(uint16 skillId, int32 chance, uint32 step)
|
||||
|
||||
UpdateSkillEnchantments(skillId, value, new_value);
|
||||
UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_REACH_SKILL_LEVEL, skillId);
|
||||
if (Guild* guild = GetGuild())
|
||||
guild->UpdateMemberData(this, GUILD_MEMBER_DATA_PROFESSIONS, 0);
|
||||
|
||||
TC_LOG_DEBUG("entities.player.skills", "Player::UpdateSkillPro Chance=%3.1f%% taken", chance / 10.0f);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -6119,7 +6123,7 @@ void Player::SetSkill(uint16 id, uint16 step, uint16 newVal, uint16 maxVal)
|
||||
}
|
||||
}
|
||||
|
||||
if (Guild * guild = GetGuild())
|
||||
if (Guild* guild = GetGuild())
|
||||
guild->UpdateMemberData(this, GUILD_MEMBER_DATA_PROFESSIONS, 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user