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:
parent
a935e51754
commit
1bb343c847
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue