From fdb6f0fe84c2a3cb395bb6e9b80ed0b7f77d7a09 Mon Sep 17 00:00:00 2001 From: KimLS Date: Thu, 29 Aug 2013 15:52:17 -0700 Subject: [PATCH] Fix for training skill bailout when you can train the skill but not at the current level. --- changelog.txt | 4 ++++ zone/client_process.cpp | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/changelog.txt b/changelog.txt index 68060da29..ef2d9c6d5 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,9 @@ EQEMu Changelog (Started on Sept 24, 2003 15:50) ------------------------------------------------------- +== 08/29/2013 == +KLS: Removed Common Profiler and Zone Profiler. They're well past outdated status and are just code bloat. +KLS: Fix for reported issue on forums with skills that could potentially be trained before a player achieved the level to train. + == 08/20/2013 == Uleat: Fix for bot pet spell buff corruption (existing db issues will correct themselves through pet death attrition) diff --git a/zone/client_process.cpp b/zone/client_process.cpp index 2eead60a2..156301859 100644 --- a/zone/client_process.cpp +++ b/zone/client_process.cpp @@ -1695,6 +1695,11 @@ void Client::OPGMTrainSkill(const EQApplicationPacket *app) return; } + if(MaxSkill(skill) == 0) { + mlog(CLIENT__ERROR, "Tried to train skill %d, but training is not allowed at this level.", skill); + return; + } + uint16 skilllevel = GetRawSkill(skill); if(skilllevel == 0) { //this is a new skill.. @@ -1703,6 +1708,7 @@ void Client::OPGMTrainSkill(const EQApplicationPacket *app) { return; } + SetSkill(skill, t_level); } else { switch(skill) {