Core/Skills: fixed an issue that was preventing archaeology sites showing up before relogging

By Ovalord
This commit is contained in:
Aokromes committed 2017-11-26 23:55:49 +01:00
1 parent b09ba9d915
commit 29f5c1d0d9
1 file changed
+4 -4
+4 -4
View File
@@ -6069,13 +6069,13 @@ void Player::SetSkill(uint16 id, uint16 step, uint16 newVal, uint16 maxVal)
if ((*j)->GetMiscValue() == int32(id))
(*j)->HandleEffect(this, AURA_EFFECT_HANDLE_SKILL, true);
// Learn all spells for skill
LearnSkillRewardedSpells(id, newVal);
return;
// archaeology skill learned
if (id == SKILL_ARCHAEOLOGY)
_archaeology.Learn();
// Learn all spells for skill
LearnSkillRewardedSpells(id, newVal);
return;
}
}
}