[10443] Fixed expected packet size for SMSG_SET_PROFICIENCY

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
zhenya 2010-09-05 00:43:19 +04:00 committed by VladimirMangos
parent 924cf7c46b
commit e621af3b97
3 changed files with 5 additions and 5 deletions

View file

@ -18049,10 +18049,10 @@ void Player::RemoveSpellMods(Spell const* spell)
}
// 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);
}

View file

@ -1644,7 +1644,7 @@ class MANGOS_DLL_SPEC Player : public Unit
bool IsNeedCastPassiveSpellAtLearn(SpellEntry const* spellInfo) const;
bool IsImmunedToSpellEffect(SpellEntry const* spellInfo, SpellEffectIndex index) 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);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10442"
#define REVISION_NR "10443"
#endif // __REVISION_NR_H__