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

@ -5496,6 +5496,7 @@ void Player::SetSkill(uint16 id, uint16 step, uint16 currVal, uint16 maxVal)
else if(currVal) // add
{
for (int i = 0; i < PLAYER_MAX_SKILLS; ++i)
{
if (!GetUInt32Value(PLAYER_SKILL_INDEX(i)))
{
SkillLineEntry const *pSkill = sSkillLineStore.LookupEntry(id);
@ -5540,6 +5541,7 @@ void Player::SetSkill(uint16 id, uint16 step, uint16 currVal, uint16 maxVal)
}
}
}
}
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)