summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-01-15 10:40:18 +0000
committerInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-01-15 10:40:18 +0000
commit55c32e60060d55f9c720109ec350942a5a2e0c9d (patch)
tree7a51e90aefc93d145e183ca1eee340e6c181b53b /src/map/pc.c
parent7d9ed18f509b8929c31f06872d2f148cabe957cb (diff)
downloadhercules-55c32e60060d55f9c720109ec350942a5a2e0c9d.tar.gz
hercules-55c32e60060d55f9c720109ec350942a5a2e0c9d.tar.bz2
hercules-55c32e60060d55f9c720109ec350942a5a2e0c9d.tar.xz
hercules-55c32e60060d55f9c720109ec350942a5a2e0c9d.zip
* Fixed change cart packet doesn't check for skill.
* Added new packets for Plagiarism. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14218 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 5f724012f..c853bd452 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -2961,10 +2961,14 @@ int pc_skill(TBL_PC* sd, int id, int level, int flag)
sd->status.skill[id].lv = level;
sd->status.skill[id].flag = 0;
if( !level ) //Remove skill.
+ {
sd->status.skill[id].id = 0;
+ clif_deleteskill(sd,id);
+ }
+ else
+ clif_addskill(sd,id);
if( !skill_get_inf(id) ) //Only recalculate for passive skills.
status_calc_pc(sd, 0);
- clif_skillinfoblock(sd);
break;
case 2: //Add skill bonus on top of what you had.
if( sd->status.skill[id].id == id ){