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
|
// 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1539,7 +1539,7 @@ class Player : public Unit, public GridObject<Player>
|
|||||||
bool IsSpellFitByClassAndRace(uint32 spell_id) const;
|
bool IsSpellFitByClassAndRace(uint32 spell_id) const;
|
||||||
bool IsNeedCastPassiveSpellAtLearn(SpellEntry const* spellInfo) const;
|
bool IsNeedCastPassiveSpellAtLearn(SpellEntry const* spellInfo) 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);
|
||||||
|
|||||||
Reference in New Issue
Block a user