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);
}
+1 -1
View File
@@ -1539,7 +1539,7 @@ class Player : public Unit, public GridObject<Player>
bool IsSpellFitByClassAndRace(uint32 spell_id) const;
bool IsNeedCastPassiveSpellAtLearn(SpellEntry const* spellInfo) const;
void SendProficiency(uint8 pr1, uint32 pr2);
void SendProficiency(ItemClass itemClass, uint32 itemSubclassMask);
void SendInitialSpells();
bool addSpell(uint32 spell_id, bool active, bool learning, bool dependent, bool disabled);
void learnSpell(uint32 spell_id, bool dependent);