diff --git a/src/game/Player.cpp b/src/game/Player.cpp index d0815de26..8bd9dcef1 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -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) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 812bda32a..cb7906133 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10208" + #define REVISION_NR "10209" #endif // __REVISION_NR_H__