mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7284] Avoid 2 times skill value request.
This commit is contained in:
parent
22656b33e3
commit
f75f112bfc
2 changed files with 2 additions and 4 deletions
|
|
@ -3035,8 +3035,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)
|
||||
{
|
||||
|
|
@ -3048,7 +3047,6 @@ void Spell::EffectOpenLock(uint32 /*i*/)
|
|||
else if(itemTarget)
|
||||
{
|
||||
// Do one skill-up
|
||||
uint32 SkillValue = player->GetPureSkillValue(SkillId);
|
||||
player->UpdateGatherSkill(SkillId, SkillValue, reqSkillValue);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue