Core/Packets: Fix packet size and info for SMSG_SET_PROFICIENCY, original code by zhenya

--HG--
branch : trunk
This commit is contained in:
Shocker
2010-09-08 13:26:40 +03:00
parent 41459898f9
commit f19336e455
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -19084,10 +19084,10 @@ void Player::SetSpellModTakingSpell(Spell * spell, bool apply)
}
// send Proficiency
void Player::SendProficiency(uint8 pr1, uint32 pr2)
void Player::SendProficiency(ItemClass itemClass, uint32 itemSubclassMask)
{
WorldPacket data(SMSG_SET_PROFICIENCY, 8);
data << uint8(pr1) << uint32(pr2);
WorldPacket data(SMSG_SET_PROFICIENCY, 1 + 4);
data << uint8(itemClass) << uint32(itemSubclassMask);
GetSession()->SendPacket (&data);
}