Fiiiiiiiiiiiiiix.

This commit is contained in:
tomrus88 2010-03-27 19:55:36 +03:00
parent b99f51a984
commit 9a2f04ac9e
2 changed files with 43 additions and 41 deletions

View file

@ -5461,7 +5461,7 @@ void Player::SetSkill(uint16 id, uint16 step, uint16 currVal, uint16 maxVal)
SkillStatusMap::iterator itr = mSkillStatus.find(id);
//has skill
// has skill
if(itr != mSkillStatus.end() && itr->second.uState != SKILL_DELETED)
{
if(currVal)
@ -5493,9 +5493,10 @@ void Player::SetSkill(uint16 id, uint16 step, uint16 currVal, uint16 maxVal)
removeSpell(sSpellMgr.GetFirstSpellInChain(pAbility->spellId));
}
}
else if(currVal) //add
else if(currVal) // add
{
for (int i = 0; i < PLAYER_MAX_SKILLS; ++i)
{
for (int i=0; i < PLAYER_MAX_SKILLS; ++i)
if (!GetUInt32Value(PLAYER_SKILL_INDEX(i)))
{
SkillLineEntry const *pSkill = sSkillLineStore.LookupEntry(id);
@ -5539,6 +5540,7 @@ void Player::SetSkill(uint16 id, uint16 step, uint16 currVal, uint16 maxVal)
return;
}
}
}
}
bool Player::HasSkill(uint32 skill) const

View file

@ -254,7 +254,7 @@ int WorldSocket::open (void *a)
packet.append(seed1.AsByteArray(16), 16); // new encryption seeds
BigNumber seed2;
seed1.SetRand(16 * 8);
seed2.SetRand(16 * 8);
packet.append(seed1.AsByteArray(16), 16); // new encryption seeds
if (SendPacket (packet) == -1)