mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
Fiiiiiiiiiiiiiix.
This commit is contained in:
parent
b99f51a984
commit
9a2f04ac9e
2 changed files with 43 additions and 41 deletions
|
|
@ -5496,6 +5496,7 @@ void Player::SetSkill(uint16 id, uint16 step, uint16 currVal, uint16 maxVal)
|
||||||
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)))
|
if (!GetUInt32Value(PLAYER_SKILL_INDEX(i)))
|
||||||
{
|
{
|
||||||
SkillLineEntry const *pSkill = sSkillLineStore.LookupEntry(id);
|
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
|
bool Player::HasSkill(uint32 skill) const
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -254,7 +254,7 @@ int WorldSocket::open (void *a)
|
||||||
packet.append(seed1.AsByteArray(16), 16); // new encryption seeds
|
packet.append(seed1.AsByteArray(16), 16); // new encryption seeds
|
||||||
|
|
||||||
BigNumber seed2;
|
BigNumber seed2;
|
||||||
seed1.SetRand(16 * 8);
|
seed2.SetRand(16 * 8);
|
||||||
packet.append(seed1.AsByteArray(16), 16); // new encryption seeds
|
packet.append(seed1.AsByteArray(16), 16); // new encryption seeds
|
||||||
|
|
||||||
if (SendPacket (packet) == -1)
|
if (SendPacket (packet) == -1)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue