mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[10443] Fixed expected packet size for SMSG_SET_PROFICIENCY
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
924cf7c46b
commit
e621af3b97
3 changed files with 5 additions and 5 deletions
|
|
@ -18049,10 +18049,10 @@ void Player::RemoveSpellMods(Spell const* spell)
|
||||||
}
|
}
|
||||||
|
|
||||||
// send Proficiency
|
// send Proficiency
|
||||||
void Player::SendProficiency(uint8 pr1, uint32 pr2)
|
void Player::SendProficiency(ItemClass itemClass, uint32 itemSubclassMask)
|
||||||
{
|
{
|
||||||
WorldPacket data(SMSG_SET_PROFICIENCY, 8);
|
WorldPacket data(SMSG_SET_PROFICIENCY, 1 + 4);
|
||||||
data << uint8(pr1) << uint32(pr2);
|
data << uint8(itemClass) << uint32(itemSubclassMask);
|
||||||
GetSession()->SendPacket (&data);
|
GetSession()->SendPacket (&data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1644,7 +1644,7 @@ class MANGOS_DLL_SPEC Player : public Unit
|
||||||
bool IsNeedCastPassiveSpellAtLearn(SpellEntry const* spellInfo) const;
|
bool IsNeedCastPassiveSpellAtLearn(SpellEntry const* spellInfo) const;
|
||||||
bool IsImmunedToSpellEffect(SpellEntry const* spellInfo, SpellEffectIndex index) const;
|
bool IsImmunedToSpellEffect(SpellEntry const* spellInfo, SpellEffectIndex index) const;
|
||||||
|
|
||||||
void SendProficiency(uint8 pr1, uint32 pr2);
|
void SendProficiency(ItemClass itemClass, uint32 itemSubclassMask);
|
||||||
void SendInitialSpells();
|
void SendInitialSpells();
|
||||||
bool addSpell(uint32 spell_id, bool active, bool learning, bool dependent, bool disabled);
|
bool addSpell(uint32 spell_id, bool active, bool learning, bool dependent, bool disabled);
|
||||||
void learnSpell(uint32 spell_id, bool dependent);
|
void learnSpell(uint32 spell_id, bool dependent);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10442"
|
#define REVISION_NR "10443"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue