summaryrefslogtreecommitdiff
path: root/src/net/ea/skillhandler.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-05-12 08:11:35 -0600
committerJared Adams <jaxad0127@gmail.com>2009-05-12 08:12:31 -0600
commit657afb7b642d5b02289c6bb5bc883c2987cdf5d1 (patch)
tree26816e7e3f3acfd521844be85423a8b18d2443c5 /src/net/ea/skillhandler.cpp
parentb4d5e2a9c92fe5b0f53c3d08b87c324960c3215c (diff)
downloadMana-657afb7b642d5b02289c6bb5bc883c2987cdf5d1.tar.gz
Mana-657afb7b642d5b02289c6bb5bc883c2987cdf5d1.tar.bz2
Mana-657afb7b642d5b02289c6bb5bc883c2987cdf5d1.tar.xz
Mana-657afb7b642d5b02289c6bb5bc883c2987cdf5d1.zip
Remove methods from LocalPlayer that just call Net
And make a few others like that, and remove them too.
Diffstat (limited to 'src/net/ea/skillhandler.cpp')
-rw-r--r--src/net/ea/skillhandler.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/ea/skillhandler.cpp b/src/net/ea/skillhandler.cpp
index 0239a2c8..69b0fd65 100644
--- a/src/net/ea/skillhandler.cpp
+++ b/src/net/ea/skillhandler.cpp
@@ -26,6 +26,7 @@
#include "net/messagein.h"
#include "net/messageout.h"
+#include "localplayer.h"
#include "log.h"
#include "gui/skill.h"
@@ -216,6 +217,9 @@ void SkillHandler::handleMessage(MessageIn &msg)
void SkillHandler::up(int skillId)
{
+ if (player_node->mSkillPoint <= 0)
+ return;
+
MessageOut outMsg(CMSG_SKILL_LEVELUP_REQUEST);
outMsg.writeInt16(skillId);
}