Core/Guilds: fixed updating profession skill values in guild roster when gaining skill points

This commit is contained in:
Ovahlord
2019-09-03 16:50:43 +02:00
parent 6d759dc6e8
commit 600486f0b2

View File

@@ -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);
}