mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
[7284] Avoid 2 times skill value request. Author: VladimirMangos
--HG-- branch : trunk
This commit is contained in:
@@ -3137,8 +3137,7 @@ void Spell::EffectOpenLock(uint32 /*i*/)
|
||||
}
|
||||
|
||||
// update skill if really known
|
||||
uint32 SkillValue = player->GetPureSkillValue(SkillId);
|
||||
if(SkillValue) // non only item base skill
|
||||
if(uint32 SkillValue = player->GetPureSkillValue(SkillId))
|
||||
{
|
||||
if(gameObjTarget)
|
||||
{
|
||||
@@ -3150,7 +3149,6 @@ void Spell::EffectOpenLock(uint32 /*i*/)
|
||||
else if(itemTarget)
|
||||
{
|
||||
// Do one skill-up
|
||||
uint32 SkillValue = player->GetPureSkillValue(SkillId);
|
||||
player->UpdateGatherSkill(SkillId, SkillValue, reqSkillValue);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user