mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[10209] Output leaned before disabled ranks at talent re-learn or spec swith in proper order.
This commit is contained in:
parent
624b45f333
commit
d6a3347245
2 changed files with 10 additions and 10 deletions
|
|
@ -3364,6 +3364,15 @@ void Player::learnSpell(uint32 spell_id, bool dependent)
|
|||
|
||||
bool learning = addSpell(spell_id, active, true, dependent, false);
|
||||
|
||||
// prevent duplicated entires in spell book, also not send if not in world (loading)
|
||||
if (learning && IsInWorld())
|
||||
{
|
||||
WorldPacket data(SMSG_LEARNED_SPELL, 6);
|
||||
data << uint32(spell_id);
|
||||
data << uint16(0); // 3.3.3 unk
|
||||
GetSession()->SendPacket(&data);
|
||||
}
|
||||
|
||||
// learn all disabled higher ranks (recursive)
|
||||
if(disabled)
|
||||
{
|
||||
|
|
@ -3375,15 +3384,6 @@ void Player::learnSpell(uint32 spell_id, bool dependent)
|
|||
learnSpell(i->second, false);
|
||||
}
|
||||
}
|
||||
|
||||
// prevent duplicated entires in spell book, also not send if not in world (loading)
|
||||
if(!learning || !IsInWorld ())
|
||||
return;
|
||||
|
||||
WorldPacket data(SMSG_LEARNED_SPELL, 6);
|
||||
data << uint32(spell_id);
|
||||
data << uint16(0); // 3.3.3 unk
|
||||
GetSession()->SendPacket(&data);
|
||||
}
|
||||
|
||||
void Player::removeSpell(uint32 spell_id, bool disabled, bool learn_low_rank, bool sendUpdate)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10208"
|
||||
#define REVISION_NR "10209"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue