summaryrefslogtreecommitdiff
path: root/src/map/skill.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/skill.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/skill.c')
-rw-r--r--src/map/skill.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 52b96383f..621454760 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -1864,18 +1864,20 @@ int skill_attack (int attack_type, struct block_list* src, struct block_list *ds
tsd->status.skill[tsd->cloneskill_id].id = 0;
tsd->status.skill[tsd->cloneskill_id].lv = 0;
tsd->status.skill[tsd->cloneskill_id].flag = 0;
+ clif_deleteskill(tsd,tsd->cloneskill_id);
}
if ((type = pc_checkskill(tsd,RG_PLAGIARISM)) < lv)
lv = type;
tsd->cloneskill_id = skillid;
+ pc_setglobalreg(tsd, "CLONE_SKILL", skillid);
+ pc_setglobalreg(tsd, "CLONE_SKILL_LV", lv);
+
tsd->status.skill[skillid].id = skillid;
tsd->status.skill[skillid].lv = lv;
tsd->status.skill[skillid].flag = 13;//cloneskill flag
- pc_setglobalreg(tsd, "CLONE_SKILL", skillid);
- pc_setglobalreg(tsd, "CLONE_SKILL_LV", lv);
- clif_skillinfoblock(tsd);
+ clif_addskill(tsd,skillid);
}
}
if( skillid != WZ_SIGHTRASHER &&