diff options
Diffstat (limited to 'src/game/SkillHandler.cpp')
-rw-r--r-- | src/game/SkillHandler.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/SkillHandler.cpp b/src/game/SkillHandler.cpp index 9f3915c30cb..56e48bf75c4 100644 --- a/src/game/SkillHandler.cpp +++ b/src/game/SkillHandler.cpp @@ -82,6 +82,10 @@ void WorldSession::HandleLearnTalentOpcode( WorldPacket & recv_data ) } } + // Check if it requires spell + if( talentInfo->DependsOnSpell && !player->HasSpell(talentInfo->DependsOnSpell) ) + return; + // Find out how many points we have in this field uint32 spentPoints = 0; |