aboutsummaryrefslogtreecommitdiff
path: root/src/game/SkillHandler.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-24 11:18:01 -0600
committermegamage <none@none>2008-12-24 11:18:01 -0600
commit184b82abccfff95b18bed81ded1b5a7e98d2dbd3 (patch)
tree4329c771076612bc55e52febfb5f323a2f21007e /src/game/SkillHandler.cpp
parent3cb4e7c716b11f357b3265257c51e7b6cc5c36f9 (diff)
Backed out changeset: ad4f100c0a9d
--HG-- branch : trunk
Diffstat (limited to 'src/game/SkillHandler.cpp')
-rw-r--r--src/game/SkillHandler.cpp4
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;