Core/Spells: Prevent rerolling gathering skillups until success when mining or gathering herbs
(cherry picked from commit 92b7c98c018c1b950a45fb639e70871dca739ebd)
This commit is contained in:
@@ -1668,9 +1668,11 @@ void Spell::EffectOpenLock()
|
||||
if (gameObjTarget)
|
||||
{
|
||||
// Allow one skill-up until respawned
|
||||
if (!gameObjTarget->IsInSkillupList(player->GetGUID()) &&
|
||||
player->UpdateGatherSkill(skillId, pureSkillValue, reqSkillValue, 1, gameObjTarget))
|
||||
if (!gameObjTarget->IsInSkillupList(player->GetGUID()))
|
||||
{
|
||||
player->UpdateGatherSkill(skillId, pureSkillValue, reqSkillValue, 1, gameObjTarget);
|
||||
gameObjTarget->AddToSkillupList(player->GetGUID());
|
||||
}
|
||||
}
|
||||
else if (itemTarget)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user