Core/GameObjects: remove incorrect gathering experience implementation
This commit is contained in:
1 parent
acaf42798a
commit
f18a592a7e
4 files changed
+3
-49
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user