diff options
author | megamage <none@none> | 2009-03-16 15:52:16 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-16 15:52:16 -0600 |
commit | 39e71ef5e2d9c4bf1aaa603544abee4031966fb4 (patch) | |
tree | 1ac1ed8a9e8a9bbf79eaeeb2c8f196353ce1805b /src | |
parent | 986334e64140bbd56efcb57ec90259330dc6e1c7 (diff) |
[7473] Better support new DK class profession. Author: VladimirMangos
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Player.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index e69848b55b8..5a7a5d618a3 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -2975,8 +2975,8 @@ bool Player::addSpell(uint32 spell_id, bool active, bool learning, bool dependen continue; if(_spell_idx->second->learnOnGetSkill == ABILITY_LEARNED_ON_GET_RACE_OR_CLASS_SKILL || - // lockpicking special case, not have ABILITY_LEARNED_ON_GET_RACE_OR_CLASS_SKILL - pSkill->id==SKILL_LOCKPICKING && _spell_idx->second->max_value==0 ) + // 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 ) { switch(GetSkillRangeType(pSkill,_spell_idx->second->racemask!=0)) { @@ -3192,8 +3192,8 @@ void Player::removeSpell(uint32 spell_id, bool disabled, bool update_action_bar_ continue; if(_spell_idx->second->learnOnGetSkill == ABILITY_LEARNED_ON_GET_RACE_OR_CLASS_SKILL || - // lockpicking special case, not have ABILITY_LEARNED_ON_GET_RACE_OR_CLASS_SKILL - pSkill->id==SKILL_LOCKPICKING && _spell_idx->second->max_value==0 ) + // 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 ) { // not reset skills for professions and racial abilities if( (pSkill->categoryId==SKILL_CATEGORY_SECONDARY || pSkill->categoryId==SKILL_CATEGORY_PROFESSION) && |