From e79a92cd3bcba19dbd3669a84cc1a3a87279f6af Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Fri, 28 Aug 2009 11:35:35 +0400 Subject: [PATCH] [8431] Avoid unlearn class skills at unlearn spell learned at skill learn. --- src/game/Player.cpp | 3 ++- src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/Player.cpp b/src/game/Player.cpp index b552f2d33..5e52b87d9 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -3265,7 +3265,8 @@ void Player::removeSpell(uint32 spell_id, bool disabled, bool learn_low_rank) if (!pSkill) continue; - if (_spell_idx->second->learnOnGetSkill == ABILITY_LEARNED_ON_GET_RACE_OR_CLASS_SKILL || + if(_spell_idx->second->learnOnGetSkill == ABILITY_LEARNED_ON_GET_RACE_OR_CLASS_SKILL && + pSkill->categoryId != SKILL_CATEGORY_CLASS ||// not unlearn class skills (spellbook/talent pages) // lockpicking/runeforging special case, not have ABILITY_LEARNED_ON_GET_RACE_OR_CLASS_SKILL (pSkill->id==SKILL_LOCKPICKING || pSkill->id==SKILL_RUNEFORGING) && _spell_idx->second->max_value==0 ) { diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 2bba88899..863855244 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 "8430" + #define REVISION_NR "8431" #endif // __REVISION_NR_H__