diff options
Diffstat (limited to 'src/game/SkillHandler.cpp')
-rw-r--r-- | src/game/SkillHandler.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/game/SkillHandler.cpp b/src/game/SkillHandler.cpp index 973d0bf9c39..a6d854d25ce 100644 --- a/src/game/SkillHandler.cpp +++ b/src/game/SkillHandler.cpp @@ -1,7 +1,7 @@ /* - * Copyright (C) 2005-2008 MaNGOS <http://www.mangosproject.org/> + * Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/> * - * Copyright (C) 2008 Trinity <http://www.trinitycore.org/> + * Copyright (C) 2008-2009 Trinity <http://www.trinitycore.org/> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,12 +23,10 @@ #include "Opcodes.h" #include "Log.h" #include "Player.h" -#include "World.h" #include "WorldPacket.h" #include "WorldSession.h" #include "ObjectAccessor.h" #include "UpdateMask.h" -#include "SpellAuras.h" void WorldSession::HandleLearnTalentOpcode( WorldPacket & recv_data ) { @@ -82,10 +80,6 @@ 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; @@ -133,8 +127,8 @@ void WorldSession::HandleLearnTalentOpcode( WorldPacket & recv_data ) return; // learn! (other talent ranks will unlearned at learning) - GetPlayer( )->learnSpell(spellid); - sLog.outDetail("TalentID: %u Rank: %u Spell: %u\n", talent_id, requested_rank, spellid); + GetPlayer( )->learnSpell(spellid,false); + sLog.outDetail("TalentID: %u Rank: %u Spell: %u", talent_id, requested_rank, spellid); // update free talent points GetPlayer()->SetFreeTalentPoints(CurTalentPoints - 1); |