summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-06-22 21:02:46 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-06-22 21:02:46 +0000
commitf80a5e94f547d398549b1ad4ba030eea73dcd949 (patch)
treeafa13dfec3323e08c89b27651d0005257d1c81fb /src/map/pc.c
parent9b6610e12b484d9bb4b295a5fc609a3eed7f9940 (diff)
downloadhercules-f80a5e94f547d398549b1ad4ba030eea73dcd949.tar.gz
hercules-f80a5e94f547d398549b1ad4ba030eea73dcd949.tar.bz2
hercules-f80a5e94f547d398549b1ad4ba030eea73dcd949.tar.xz
hercules-f80a5e94f547d398549b1ad4ba030eea73dcd949.zip
Plagiarized skills are now removed on jobchange (bugreport:4973).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14862 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 0584b3c0d..372c45cb0 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -6371,6 +6371,12 @@ int pc_jobchange(struct map_session_data *sd,int job, int upper)
}
if(sd->cloneskill_id) {
+ if( sd->status.skill[sd->cloneskill_id].flag == SKILL_FLAG_PLAGIARIZED ) {
+ sd->status.skill[sd->cloneskill_id].id = 0;
+ sd->status.skill[sd->cloneskill_id].lv = 0;
+ sd->status.skill[sd->cloneskill_id].flag = 0;
+ clif_deleteskill(sd,sd->cloneskill_id);
+ }
sd->cloneskill_id = 0;
pc_setglobalreg(sd, "CLONE_SKILL", 0);
pc_setglobalreg(sd, "CLONE_SKILL_LV", 0);