fix(Core/Professions): Players should be able to update gathering ski… (#12033)

fix(Core/Professions): Players should be able to update gathering skill only once per gameobject.

Fixes #11918
This commit is contained in:
UltraNix
2022-06-19 13:46:56 +02:00
committed by GitHub
parent a935e51754
commit 1bb343c847

View File

@@ -2172,8 +2172,12 @@ void Spell::EffectOpenLock(SpellEffIndex effIndex)
if (gameObjTarget)
{
// Allow one skill-up until respawned
if (!gameObjTarget->IsInSkillupList(player->GetGUID()) && player->UpdateGatherSkill(skillId, pureSkillValue, reqSkillValue))
if (!gameObjTarget->IsInSkillupList(player->GetGUID()))
{
gameObjTarget->AddToSkillupList(player->GetGUID());
player->UpdateGatherSkill(skillId, pureSkillValue, reqSkillValue);
}
}
else if (itemTarget)
{