Core/GameObjects: remove incorrect gathering experience implementation

This commit is contained in:
Ovahlord committed 2023-01-17 19:56:25 +01:00
1 parent acaf42798a
commit f18a592a7e
4 files changed
+3 -49

No files matched your search

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