Core/Packets: Fix packet size and info for SMSG_SET_PROFICIENCY, original code by zhenya
--HG-- branch : trunk
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user