mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
Core/Spells: Fixed professions resetting back to 1 when learning new level (expert/artisan)
This commit is contained in:
@@ -2617,7 +2617,7 @@ void Spell::EffectLearnSkill(SpellEffIndex effIndex)
|
||||
return;
|
||||
|
||||
uint16 skillval = unitTarget->ToPlayer()->GetPureSkillValue(skillid);
|
||||
unitTarget->ToPlayer()->SetSkill(skillid, m_spellInfo->Effects[effIndex].CalcValue(), std::min<uint16>(skillval, 1), tier->MaxSkill[damage - 1]);
|
||||
unitTarget->ToPlayer()->SetSkill(skillid, m_spellInfo->Effects[effIndex].CalcValue(), std::max<uint16>(skillval, 1), tier->MaxSkill[damage - 1]);
|
||||
}
|
||||
|
||||
void Spell::EffectAddHonor(SpellEffIndex /*effIndex*/)
|
||||
|
||||
Reference in New Issue
Block a user