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:
@@ -2172,8 +2172,12 @@ void Spell::EffectOpenLock(SpellEffIndex effIndex)
|
|||||||
if (gameObjTarget)
|
if (gameObjTarget)
|
||||||
{
|
{
|
||||||
// Allow one skill-up until respawned
|
// 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());
|
gameObjTarget->AddToSkillupList(player->GetGUID());
|
||||||
|
player->UpdateGatherSkill(skillId, pureSkillValue, reqSkillValue);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (itemTarget)
|
else if (itemTarget)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user